Performs a touch action at a specific point on the screen. This is a low-level touch event. For interacting with elements, prefer tap. Example: touch(target: { x: 100, y: 200 }) Returns true if the touch action was successful.

Definition

touch(
  target: PointOptions!
): Boolean!

Arguments

target: PointOptions!

The target coordinates (x, y) for the touch action.

Returns

Boolean!

The Boolean scalar type represents true or false.