puppeteer/docs/api/puppeteer.elementhandle.draganddrop.md
Miki Lombardi 39e3d4bceb docs: Upgrading to Docusaurus V3 (#11434)
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2023-11-29 13:08:08 +01:00

879 B

sidebar_label
ElementHandle.dragAndDrop

ElementHandle.dragAndDrop() method

Warning: This API is now obsolete.

Use ElementHandle.drop instead.

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>