Skip to main content

externalWebdriverIOCookie

WebdriverIO-specific implementation of Cookie.

Hierarchy

Index

Constructors

externalconstructor

  • Parameters

    • externalbrowser: Browser
    • externalcookieName: string

    Returns WebdriverIOCookie

Methods

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>

externaldelete

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