Skip to main content

externalProtractorCookie

Protractor-specific implementation of Cookie.

Hierarchy

Index

Constructors

externalconstructor

  • new ProtractorCookie(browser: ProtractorBrowser, cookieName: string): ProtractorCookie
  • Parameters

    • externalbrowser: ProtractorBrowser
    • externalcookieName: string

    Returns ProtractorCookie

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>