Device

Represents a user input device.

Constructor

(abstract) new Device(type, id)

Parameters:
NameTypeDescription
typeDevice.Type

the input type.

idstring

a unique ID for this device.

Members

(static) Type :string

Device types supported by the WebDriver protocol.

Type:
  • string
Properties
NameTypeDescription
KEYstring
NONEstring
POINTERstring
WHEELstring

Methods

toJSON() → (non-null) {Object}

Returns:

the JSON encoding for this device.

Type: 
Object