drag
Simulates real mouse press-move-release between a source and destination to automate HTML5 and pointer-event move-and-drop interactions in Chrome.
Instructions
Drag from one target to another with real mouse events; works for HTML5 drag-and-drop and pointer-event drags.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | A ref from snapshot/find ("e12"), a point "x,y" in the last screenshot's pixels, or a Playwright selector (text=…, role=button[name="…"], #id, css=…, xpath=…) | |
| tab | No | Tab id such as "t3"; default is the active tab | |
| from | Yes | A ref from snapshot/find ("e12"), a point "x,y" in the last screenshot's pixels, or a Playwright selector (text=…, role=button[name="…"], #id, css=…, xpath=…) |