Swipe
swipeSimulate swipe gestures on mobile devices for UI testing by specifying a direction or start and end coordinates.
Instructions
Swipe by direction (up/down/left/right) or between two coordinate points. Direction swipes are centered on the screen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | No | ||
| x2 | No | ||
| y1 | No | ||
| y2 | No | ||
| observe | No | What to return after the action: 'screen' = fresh compact hierarchy, 'diff' = only what changed since last inspect, 'screenshot' = PNG, 'none' = just confirm. | screen |
| device_id | Yes | Device id from list_devices (adb serial like 'emulator-5554', or an iOS simulator UDID) | |
| direction | No | ||
| duration_ms | No |