long_press_element
Long-press a UI element specified by screen bounds, using a random point inside while excluding edge margins, to trigger context or icon long-press menus.
Instructions
Long-presses an element identified by bounds (random point inside the bounds, edge margin excluded). For e.g. icon long-press menus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bounds | Yes | [left, top, right, bottom],来自 get_screen_state 节点的 boundsInScreen。 | |
| margin | No | Exclude this many pixels from each edge (default 4). | |
| verify | No | 复查屏幕树确认变更生效 (default true). | |
| duration_ms | No | Hold duration in ms (default 600). | |
| verify_poll_ms | No | 轮询树的时间间隔毫秒 (default 300). | |
| verify_timeout_ms | No | 等待变更生效的超时毫秒 (default 3000). |