Back to Puppeteer

ElementHandle.touchStart() method

docs/api/puppeteer.elementhandle.touchstart.md

19.2.2670 B
Original Source

ElementHandle.touchStart() method

This method scrolls the element into view if needed, and then starts a touch in the center of the element.

Signature

typescript
class ElementHandle {
  touchStart(this: ElementHandle<Element>): Promise<TouchHandle>;
}

Parameters

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

Parameter

</th><th>

Type

</th><th>

Description

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

this

</td><td>

ElementHandle<Element>

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

Returns:

Promise<TouchHandle>

A TouchHandle representing the touch that was started