Constructor
(abstract) new Device(type, id)
Parameters:
Name | Type | Description |
---|---|---|
type | Device. | the input type. |
id | string | a unique ID for this device. |
- Source
Members
(static) Type :string
Device types supported by the WebDriver protocol.
Type:
Properties- string
Name | Type | Description |
---|---|---|
KEY | string | |
NONE | string | |
POINTER | string | |
WHEEL | string |
- Source
Methods
toJSON() → (non-null) {Object}
- Source
Returns:
the JSON encoding for this device.
- Type:
- Object