Drops the given element onto the current one.
class ElementHandle {
drop(
this: ElementHandle<Element>,
element: ElementHandle<Element>,
): Promise<void>;
}
Parameter | Type | Description |
---|---|---|
this | [ElementHandle](./puppeteer.elementhandle.md)<Element> | |
element | [ElementHandle](./puppeteer.elementhandle.md)<Element> |
Returns:
Promise<void>
Warning: This API is now obsolete.
No longer supported.
class ElementHandle {
drop(
this: ElementHandle<Element>,
data?: Protocol.Input.DragData,
): Promise<void>;
}
Parameter | Type | Description |
---|---|---|
this | [ElementHandle](./puppeteer.elementhandle.md)<Element> | |
data | Protocol.Input.DragData | _(Optional)_ |
Returns:
Promise<void>