Methods
(static) fromJSON(jsonopt) → {session.Capabilities}
Unmarshal a JSON object representation of WebDriver capabilities.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
json |
Object.<string, *> |
<optional> |
WebDriver capabilities. |
- Source:
Returns:
Internal representation of WebDriver capabilities.
- Type
- session.Capabilities
set(key, value)
Parameters:
Name | Type | Description |
---|---|---|
key |
string | Capability key. |
value |
string | number | boolean | JSON-safe capability value. |
- Source:
toJSON() → {Object.<string, ?>}
JSON serialisation of capabilities object.
- Source:
Returns:
- Type
- Object.<string, ?>
toString() → {string}
- Source:
Returns:
- Type
- string