java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.ManageCookies

public class ManageCookies extends Object
Manage browser cookies - add, remove, or clear cookies.
  • Constructor Details

    • ManageCookies

      public ManageCookies()
  • Method Details

    • addCookie

      public static AddCookieBuilder addCookie(String name, String value)
      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.