puppeteer/website/versioned_docs/version-22.10.0/api/puppeteer.elementhandle.drop.md

61 lines
672 B
Markdown
Raw Normal View History

---
sidebar_label: ElementHandle.drop
---
# ElementHandle.drop() method
Drops the given element onto the current one.
#### Signature:
```typescript
class ElementHandle {
drop(
this: ElementHandle<Element>,
element: ElementHandle<Element>
): Promise<void>;
}
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
this
</td><td>
[ElementHandle](./puppeteer.elementhandle.md)&lt;Element&gt;
</td><td>
</td></tr>
<tr><td>
element
</td><td>
[ElementHandle](./puppeteer.elementhandle.md)&lt;Element&gt;
</td><td>
</td></tr>
</tbody></table>
**Returns:**
Promise&lt;void&gt;