Skip to main content

ProtractorCookie

Protractor-specific implementation of Cookie.

Hierarchy

  • Cookie
    • ProtractorCookie

Index

Constructors

constructor

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

    • browser: ProtractorBrowser
    • cookieName: string

    Returns ProtractorCookie

Methods

delete

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

name

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


    Returns string

isPresent

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

    Learn more


    Returns Promise<boolean>

value

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


    Returns Promise<string>

path

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


    Returns Promise<string>

domain

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


    Returns Promise<string>

isHttpOnly

  • isHttpOnly(): Promise<boolean>

isSecure

  • isSecure(): Promise<boolean>

expiry

  • expiry(): Promise<Timestamp>
  • Returns the expiry date of a given cookie

    Learn more


    Returns Promise<Timestamp>