puppeteer/docs/api/puppeteer.elementhandle.drag.md
2022-07-01 11:52:39 +00:00

503 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>