net.serenitybdd.screenplay.questions.page.Cookies Maven / Gradle / Ivy
package net.serenitybdd.screenplay.questions.page;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.abilities.BrowseTheWeb;
import org.openqa.selenium.Cookie;
import java.util.Set;
public class Cookies {
public static Question> cookies() {
return Question.about("cookies").answeredBy(actor -> BrowseTheWeb.as(actor).getDriver().manage().getCookies());
}
public static Question cookieNamed(String name) {
return Question.about("cookies").answeredBy(actor -> BrowseTheWeb.as(actor).getDriver().manage().getCookieNamed(name));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy