JSDoc: Class: Capabilities

# Class: Capabilities

## session.Capabilities()

WebDriver session capabilities representation.

## Constructor

#### new Capabilities()

Source:
  - session.js, line 336

### 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:
  - session.js, line 399

##### 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:
  - session.js, line 368

#### toJSON() → {Object.<string, ?>}

JSON serialisation of capabilities object.

Source:
  - session.js, line 386

##### Returns:

Type
  Object.<string, ?>

#### toString() → {string}

Source:
  - session.js, line 379

##### Returns:

Type
  string