All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.nosqlbench.driver.webdriver.verbs.GetCookieNamed Maven / Gradle / Ivy

package io.nosqlbench.driver.webdriver.verbs;

import io.nosqlbench.driver.webdriver.WebContext;
import org.openqa.selenium.Cookie;

public class GetCookieNamed implements WebDriverVerb {
    private final String cookieName;

    public GetCookieNamed(String cookieName) {
        this.cookieName = cookieName;
    }

    @Override
    public void execute(WebContext context) {
        Cookie cookie = context.driver().manage().getCookieNamed(cookieName);
        context.pushCookie(cookie);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy