puppeteer/website/versioned_docs/version-22.6.3/api/puppeteer.mouse.draganddrop.md
release-please[bot] a63b8305ac
chore: release main (#12190)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-04-05 13:11:52 +00:00

915 B

sidebar_label
Mouse.dragAndDrop

Mouse.dragAndDrop() method

Performs a drag, dragenter, dragover, and drop in sequence.

Signature:

class Mouse {
  abstract dragAndDrop(
    start: Point,
    target: Point,
    options?: {
      delay?: number;
    }
  ): Promise<void>;
}

Parameters

Parameter

Type

Description

start

Point

point to drag from

target

Point

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>