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

36 lines
879 B
Markdown

---
sidebar_label: ElementHandle.dragAndDrop
---
# ElementHandle.dragAndDrop() method
> Warning: This API is now obsolete.
>
> Use `ElementHandle.drop` instead.
#### Signature:
```typescript
class ElementHandle {
dragAndDrop(
this: ElementHandle<Element>,
target: ElementHandle<Node>,
options?: {
delay: number;
}
): Promise<void>;
}
```
## Parameters
| Parameter | Type | Description |
| --------- | ------------------------------------------------------------ | ------------ |
| this | [ElementHandle](./puppeteer.elementhandle.md)&lt;Element&gt; | |
| target | [ElementHandle](./puppeteer.elementhandle.md)&lt;Node&gt; | |
| options | &#123; delay: number; &#125; | _(Optional)_ |
**Returns:**
Promise&lt;void&gt;