puppeteer/docs/api/puppeteer.elementhandle.drag.md

446 B

sidebar_label
ElementHandle.drag

ElementHandle.drag() method

This method creates and captures a dragevent from the element.

Signature:

class ElementHandle {drag(target: Point): Promise<Protocol.Input.DragData>;}

Parameters

Parameter Type Description
target Point

Returns:

Promise<Protocol.Input.DragData>