mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
25 lines
599 B
Markdown
25 lines
599 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [ElementHandle](./puppeteer.elementhandle.md) > [drag](./puppeteer.elementhandle.drag.md)
|
||
|
|
||
|
## ElementHandle.drag() method
|
||
|
|
||
|
This method creates and captures a dragevent from the element.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
drag(target: Point): Promise<Protocol.Input.DragData>;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| target | [Point](./puppeteer.point.md) | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
Promise<Protocol.Input.DragData>
|
||
|
|