Swipe the screen
swipeDrag from one Android screen coordinate to another to scroll lists or dismiss cards; set duration to control gesture speed.
Instructions
Swipe from (x1, y1) to (x2, y2) (input swipe X1 Y1 X2 Y2 [duration_ms]), e.g. to scroll a list or dismiss a card. duration_ms is the gesture time in milliseconds (device default 300 when omitted); a longer duration drags more slowly. Coordinates are device pixels; screenshot afterwards to verify the result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start X in device pixels (non-negative integer). | |
| x2 | Yes | End X in device pixels (non-negative integer). | |
| y1 | Yes | Start Y in device pixels (non-negative integer). | |
| y2 | Yes | End Y in device pixels (non-negative integer). | |
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| duration_ms | No | Gesture duration in milliseconds; omit for the device default (300 ms). |