puppeteer/website/versioned_docs/version-19.6.3/api/puppeteer.elementhandle.draganddrop.md
release-please[bot] 1dd7bbe04f
chore: release main (#9606)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2023-02-01 14:49:00 +00:00

898 B

sidebar_label
ElementHandle.dragAndDrop

ElementHandle.dragAndDrop() method

This method triggers a dragenter, dragover, and drop on the element.

Signature:

class ElementHandle {
  dragAndDrop(
    this: ElementHandle<Element>,
    target: ElementHandle<Node>,
    options?: {
      delay: number;
    }
  ): Promise<void>;
}

Parameters

Parameter Type Description
this ElementHandle<Element>
target ElementHandle<Node>
options { delay: number; } (Optional)

Returns:

Promise<void>