capabilities module

Timeouts

class Timeouts()

Representation of WebDriver session timeouts.

Timeouts.toJSON()

Marshals timeout durations to a JSON Object.

PageLoadStrategy

class PageLoadStrategy()

Enum of page loading strategies.

PageLoadStrategy.Eager

Eager, causing navigation to complete when the document reaches the <code>interactive</code> ready state.

PageLoadStrategy.None

No page load strategy. Navigation will return immediately.

PageLoadStrategy.Normal

Normal, causing navigation to return when the document reaches the <code>complete</code> ready state.

Proxy

class Proxy()

Proxy configuration object representation.

Proxy.fromJSON(json)
Arguments:
  • ?> json (Object.<string,) – JSON Object to unmarshal.
Throws:

InvalidArgumentError – When proxy configuration is invalid.

Proxy.init()

Sets Firefox proxy settings.

Returns:boolean – True if proxy settings were updated as a result of calling this function, or false indicating that this function acted as a no-op.
Proxy.toJSON()
Returns:Object.<string, (number|string)> – JSON serialisation of proxy object.

Capabilities

class Capabilities()

WebDriver session capabilities representation.

Capabilities.fromJSON(json)

Unmarshal a JSON object representation of WebDriver capabilities.

Arguments:
  • *> json (Object.<string,) –

    WebDriver capabilities.

Returns:

Capabilities – Internal representation of WebDriver capabilities.

Capabilities.set(key, value)
Arguments:
  • key (string) – Capability key.
  • value (string|number|boolean) – JSON-safe capability value.
Capabilities.toJSON()

JSON serialisation of capabilities object.

Returns:Object.<string, ?>