Methods
(static) fromJSON(jsonopt, mergeopt) → {session.Capabilities}
Unmarshal a JSON object representation of WebDriver capabilities.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
json |
Object.<string, ?> |
<optional> |
WebDriver capabilities. |
merge |
boolean |
<optional> |
If providing json with desiredCapabilities or
requiredCapabilities fields, or both, it should be
set to true to merge these before parsing. This indicates that
the input provided is from a client and not from
|
- Source:
Returns:
Internal representation of WebDriver capabilities.
- Type
- session.Capabilities
set(key, value)
Parameters:
Name | Type | Description |
---|---|---|
key |
string | Capability name. |
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