Skip to main content
The Touchscreen class provides methods to simulate touch interactions on touch-enabled devices. Access the Touchscreen instance through page.touchscreen.

Methods

tap

Simulates a tap at the specified position.
number
required
The x coordinate to tap at
number
required
The y coordinate to tap at

Example Usage

Tap an Element

Multiple Taps

For more complex touch interactions, consider using page.tap(selector) which handles element positioning automatically.