Skip to main content
Page touchscreen methods for the Puppeteer driver.

touchscreen.tap

Dispatches a touchstart and touchend event (simulates a tap). Upstream docs
x
number
required
y
number
required
await page.touchscreen.tap(0, 0);

touchscreen.touchStart

Dispatches a touchstart event.
Returns a TouchHandle that can be used to dispatch touchMove and touchEnd events for this specific touch point. This allows tracking individual touches in multi-touch scenarios.The returned TouchHandle has:
  • move(x, y): Dispatches a touchmove event for this touch
  • end(): Dispatches a touchend event for this touch
Upstream docs
x
number
required
y
number
required
result
{ touchId: string }
Return value
await page.touchscreen.touchStart(0, 0);

touchscreen.touchMove

Dispatches a touchmove event on the active touch.
Note: Not every touchMove call results in a touchmove event being emitted, depending on the browser’s optimizations.For more precise control over individual touches, use touchStart() which returns a TouchHandle with its own move() method.
Upstream docs
x
number
required
y
number
required
await page.touchscreen.touchMove(0, 0);

touchscreen.touchEnd

Dispatches a touchend event. Upstream docs
await page.touchscreen.touchEnd();