fix: extends ElementHandle to Nodes (#8552)

* fix: extends `ElementHandle` to `Node`s (#8552)
This commit is contained in:
jrandolf
2022-07-06 09:05:37 +02:00
committed by GitHub
parent b49d530d73
commit 5ff205dc8b
93 changed files with 597 additions and 1095 deletions

View File

@@ -10,15 +10,19 @@ This method triggers a drop on the element.
```typescript
class ElementHandle {
drop(data?: Protocol.Input.DragData): Promise<void>;
drop(
this: ElementHandle<Element>,
data?: Protocol.Input.DragData
): Promise<void>;
}
```
## Parameters
| Parameter | Type | Description |
| --------- | ----------------------- | ----------------- |
| data | Protocol.Input.DragData | <i>(Optional)</i> |
| Parameter | Type | Description |
| --------- | ------------------------------------------------------------ | ----------------- |
| this | [ElementHandle](./puppeteer.elementhandle.md)&lt;Element&gt; | |
| data | Protocol.Input.DragData | <i>(Optional)</i> |
**Returns:**