Back to Puppeteer

Touchscreen.touchStart() method

docs/api/puppeteer.touchscreen.touchstart.md

19.2.2611 B
Original Source

Touchscreen.touchStart() method

Dispatches a touchstart event.

Signature

typescript
class Touchscreen {
  abstract touchStart(x: number, y: number): Promise<TouchHandle>;
}

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

x

</td><td>

number

</td><td>

Horizontal position of the tap.

</td></tr> <tr><td>

y

</td><td>

number

</td><td>

Vertical position of the tap.

</td></tr> </tbody></table>

Returns:

Promise<TouchHandle>

A handle for the touch that was started.