puppeteer/docs/api/puppeteer.elementhandle.drop.md

693 B

sidebar_label
ElementHandle.drop

ElementHandle.drop() method

Drops the given element onto the current one.

Signature:

class ElementHandle {
  drop(
    this: ElementHandle<Element>,
    element: ElementHandle<Element>
  ): Promise<void>;
}

Parameters

Parameter Type Description
this ElementHandle<Element>
element ElementHandle<Element>

Returns:

Promise<void>