API Docs for: 0.2.7
Show:

CookieStorage Class

Module: Storage
Parent Module: WebDriver

Managing cookie-storage

Constructor

CookieStorage

(
  • driver
)

Parameters:

Methods

_logMethodCall

(
  • event
)
private

Logs a method call by an event

Parameters:

_requestJSON

(
  • method
  • path
  • [body]
)
private

Performs a context dependent JSON request for the current session. The result is parsed for errors.

Parameters:

Returns:

:

clear

()

Delete all cookies visible to the current page.

getCookie

(
  • name
)
Cookie | Undefined

Retrieve a specific cookie by name that is visible to the current page.

Parameters:

Returns:

Cookie | Undefined:

getCookies

() Array.

Retrieve all cookies visible to the current page.

Returns:

Array.:

getKeys

() Array.

Retrieve all cookie names visible to the current page.

Returns:

Array.:

getSize

() Number

Get the number of items in the storage

Returns:

removeCookie

(
  • name
)

Delete the cookie with the given name.

Parameters:

setCookie

(
  • cookie
)

Set a cookie that is visible to the current page.

Parameters: