swipe
Simulate a touch drag from one coordinate to another over a set duration to interact with UI elements; optionally verify the UI tree updates.
Instructions
Swipes (or drags) from one point to another over the given duration. A slow swipe (>400ms) reads as a drag in most apps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_x | Yes | ||
| end_y | Yes | ||
| verify | No | 复查屏幕树确认变更生效 (default true). | |
| start_x | Yes | ||
| start_y | Yes | ||
| duration_ms | No | Duration in milliseconds (default 300). | |
| verify_poll_ms | No | 轮询树的时间间隔毫秒 (default 300). | |
| verify_timeout_ms | No | 等待变更生效的超时毫秒 (default 3000). |