Class ManageCookies
java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.ManageCookies
Manage browser cookies - add, remove, or clear cookies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AddCookieBuilderAdd a cookie with the given name and value.static net.serenitybdd.screenplay.PerformableaddCookies(List<com.microsoft.playwright.options.Cookie> cookies) Add multiple cookies at once.static net.serenitybdd.screenplay.PerformableclearAll()Clear all cookies from the browser context.
-
Constructor Details
-
ManageCookies
public ManageCookies()
-
-
Method Details
-
addCookie
Add a cookie with the given name and value. The cookie will be set for the current page's domain. -
addCookies
public static net.serenitybdd.screenplay.Performable addCookies(List<com.microsoft.playwright.options.Cookie> cookies) Add multiple cookies at once. -
clearAll
public static net.serenitybdd.screenplay.Performable clearAll()Clear all cookies from the browser context.
-