Pointer

Pointer input device.

Constructor

new Pointer(id, type)

Parameters:
NameTypeDescription
idstring

the device ID.

typePointer.Type

the pointer type.

Members

(static) Type :string

The supported types of pointers.

Type:
  • string
Properties
NameTypeDescription
MOUSEstring
PENstring
TOUCHstring

Methods

(package) cancel() → (non-null) {Action}

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:
TypeDescription
Returns:

The new action.

Type: 
Action

(package) press(buttonopt, non-null, width, height, pressure, tangentialPressure, tiltX, tiltY, twist, altitudeAngle, azimuthAngle) → (non-null) {Action}

Parameters:
NameTypeAttributesDefaultDescription
buttonButton<optional>

The button to press.

width0
height0
pressure0
tangentialPressure0
tiltX0
tiltY0
twist0
altitudeAngle0
azimuthAngle0
Returns:

An action to press the specified button with this device.

Type: 
Action

(package) release(buttonopt, non-null) → (non-null) {Action}

Parameters:
NameTypeAttributesDescription
buttonButton<optional>

The button to release.

Returns:

An action to release the specified button with this device.

Type: 
Action

toJSON()