Skip to main content

externalPlaywrightCookie

Playwright-specific implementation of Cookie.

Hierarchy

Index

Constructors

externalconstructor

  • new PlaywrightCookie(context: BrowserContext, cookieName: string): PlaywrightCookie
  • Parameters

    • externalcontext: BrowserContext
    • externalcookieName: string

    Returns PlaywrightCookie

Methods

externaldelete

  • delete(): Promise<void>
  • Returns Promise<void>

externalname

  • name(): string
  • Returns the name of this cookie.


    Returns string

externalisPresent

  • isPresent(): Promise<boolean>
  • Checks if a given cookie is set.

    Learn more


    Returns Promise<boolean>

externalvalue

  • value(): Promise<string>
  • Returns the value of a given cookie.


    Returns Promise<string>

externalpath

  • path(): Promise<string>
  • Returns the path of a given cookie, if any was set.


    Returns Promise<string>

externaldomain

  • domain(): Promise<string>
  • Returns the domain of a given cookie, if any was set.


    Returns Promise<string>

externalisHttpOnly

  • isHttpOnly(): Promise<boolean>

externalisSecure

  • isSecure(): Promise<boolean>

externalexpiry

  • Returns the expiry date of a given cookie

    Learn more


    Returns Promise<Timestamp>