puppeteer/website/versioned_docs/version-10.1.0/puppeteer.elementhandle.drag.md
2021-08-10 11:09:48 +01:00

599 B

Home > puppeteer > ElementHandle > drag

ElementHandle.drag() method

This method creates and captures a dragevent from the element.

Signature:

drag(target: Point): Promise<Protocol.Input.DragData>;

Parameters

Parameter Type Description
target Point

Returns:

Promise<Protocol.Input.DragData>