API Docs for: 0.2.7
Show:

LocalStorage Class

Defined in: lib/localStorage.js:8
Module: Storage
Parent Module: WebDriver

Managing local storage

Constructor

LocalStorage

(
  • 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

()

Clear the storage

getItem

(
  • key
)
String

Get the storage item for the given key

Parameters:

Returns:

getKeys

() Array.

Get all keys of the storage

Returns:

Array.:

getSize

() Number

Get the number of items in the storage

Returns:

removeItem

(
  • key
)

Remove the storage item for the given key

Parameters:

setItem

(
  • key
  • value
)

Set the storage item for the given key

Parameters: