Ui Wait For Element
ui_wait_for_elementDeterministic synchronization — replaces all sleeps. Polls for an element until it reaches state (present|enabled|focused|absent) or times out. A timeout is an EXPLICIT error, never a false success. Returns {satisfied, waited_ms, element_ref?, bounds?, enabled_unknown?}. state:'enabled' is satisfied unless the app publishes AXEnabled=false; if the app publishes no AXEnabled at all the result carries enabled_unknown:true — the wait did not block, but nothing was actually verified about enabled-ness.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| label | No | ||
| match | No | ||
| state | No | Default present. | |
| poll_ms | No | Default 150. | |
| window_id | No | ||
| timeout_ms | No | Default 5000. | |
| app_bundle_id | No |