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

net.serenitybdd.screenplay.questions.page.Cookies Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version
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