Class AddCookieBuilder
java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.AddCookieBuilder
- All Implemented Interfaces:
net.serenitybdd.core.SkipNested,net.serenitybdd.screenplay.Performable
Builder for creating a cookie with various options.
-
Method Summary
Modifier and TypeMethodDescriptionexpiresAt(double timestamp) Set the expiration time as Unix timestamp in seconds.Set the domain for the cookie.httpOnly()Mark the cookie as HTTP-only.<T extends net.serenitybdd.screenplay.Actor>
voidperformAs(T actor) Set the SameSite attribute (Strict, Lax, or None).secure()Mark the cookie as secure.Set the path for the cookie.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.serenitybdd.screenplay.Performable
then
-
Method Details
-
forDomain
Set the domain for the cookie. -
withPath
Set the path for the cookie. -
expiresAt
Set the expiration time as Unix timestamp in seconds. -
httpOnly
Mark the cookie as HTTP-only. -
secure
Mark the cookie as secure. -
sameSite
Set the SameSite attribute (Strict, Lax, or None). -
performAs
public <T extends net.serenitybdd.screenplay.Actor> void performAs(T actor) - Specified by:
performAsin interfacenet.serenitybdd.screenplay.Performable
-