The Touchscreen class provides methods to simulate touch interactions on touch-enabled devices. Access the Touchscreen instance throughDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/microsoft/playwright/llms.txt
Use this file to discover all available pages before exploring further.
page.touchscreen.
Methods
tap
Simulates a tap at the specified position.The x coordinate to tap at
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.