mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
61 lines
672 B
Markdown
61 lines
672 B
Markdown
|
---
|
||
|
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)<Element>
|
||
|
|
||
|
</td><td>
|
||
|
|
||
|
</td></tr>
|
||
|
<tr><td>
|
||
|
|
||
|
element
|
||
|
|
||
|
</td><td>
|
||
|
|
||
|
[ElementHandle](./puppeteer.elementhandle.md)<Element>
|
||
|
|
||
|
</td><td>
|
||
|
|
||
|
</td></tr>
|
||
|
</tbody></table>
|
||
|
**Returns:**
|
||
|
|
||
|
Promise<void>
|