Drag and drop
dragPerform drag-and-drop on Android devices using pixel or percentage coordinates to move elements between two points.
Instructions
Drag an element from one point to another (input draganddrop). Instead of pixels you can pass screen percentages (0-1): safer when estimating positions from a screenshot image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | No | Start X in device pixels | |
| x2 | No | End X in device pixels | |
| y1 | No | Start Y in device pixels | |
| y2 | No | End Y in device pixels | |
| x1Pct | No | Start X as fraction of width (0-1) | |
| x2Pct | No | End X as fraction of width (0-1) | |
| y1Pct | No | Start Y as fraction of height (0-1) | |
| y2Pct | No | End Y as fraction of height (0-1) | |
| serial | No | Device serial (defaults to session or the only device) | |
| durationMs | No | Drag duration (default 800ms) |