Performs a drag, dragenter, dragover, and drop in sequence.
class Mouse {
abstract dragAndDrop(
start: Point,
target: Point,
options?: {
delay?: number;
},
): Promise<void>;
}
Parameter | Type | Description |
---|---|---|
start | [Point](./puppeteer.point.md) | point to drag from |
target | [Point](./puppeteer.point.md) | point to drop on |
options | { delay?: number; } | _(Optional)_ An object of options. Accepts delay which, if specified, is the time to wait between `dragover` and `drop` in milliseconds. Defaults to 0. |
Returns:
Promise<void>