Wait for an element
wait_forPause execution until an element matching label/value text or role appears, or with gone=true disappears, then return a fresh observation.
Instructions
Wait until an element whose label or value contains text (optionally of a role) appears, or disappears with gone=true. Returns a fresh observation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| gone | No | Wait until the element disappears instead | |
| text | No | Wait for an element whose label or value contains this | |
| ref_role | No | Only elements of this role (e.g. 'button') | |
| window_id | No | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||