Constructor
new Pointer(id, type)
Parameters:
Name | Type | Description |
---|---|---|
id | string | the device ID. |
type | Pointer. | the pointer type. |
- Source
Members
(static) Type :string
The supported types of pointers.
Type:
Properties- string
Name | Type | Description |
---|---|---|
MOUSE | string | |
PEN | string | |
TOUCH | string |
- Source
Methods
(package) cancel() → (non-null) {Action}
- Source
Returns:
An action that cancels this pointer's current input.
- Type:
- Action
(package) move() → (non-null) {Action}
Creates an action for moving the pointer x
and y
pixels from the specified origin
. The origin
may be defined as the pointer's current position, the viewport, or the center of a specific WebElement.
Parameters:
Type | Description |
---|---|
- Source
Returns:
The new action.
- Type:
- Action
(package) press(buttonopt, non-null, width, height, pressure, tangentialPressure, tiltX, tiltY, twist, altitudeAngle, azimuthAngle) → (non-null) {Action}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
button | Button | <optional> | The button to press. | |
width | 0 | |||
height | 0 | |||
pressure | 0 | |||
tangentialPressure | 0 | |||
tiltX | 0 | |||
tiltY | 0 | |||
twist | 0 | |||
altitudeAngle | 0 | |||
azimuthAngle | 0 |
- Source
Returns:
An action to press the specified button with this device.
- Type:
- Action
(package) release(buttonopt, non-null) → (non-null) {Action}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
button | Button | <optional> | The button to release. |
- Source
Returns:
An action to release the specified button with this device.
- Type:
- Action
toJSON()
- Source