Skip to main content

WebdriverIOCookie

WebdriverIO-specific implementation of Cookie.

Hierarchy

  • Cookie
    • WebdriverIOCookie

Index

Constructors

constructor

  • Parameters

    • browser: Browser
    • cookieName: string

    Returns WebdriverIOCookie

Methods

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>

delete

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