Wait for UI
wait_for_uiWait for an Android UI element matching text, content-desc, or resource-id to appear, then retrieve its tap coordinates. Solves flaky automation by polling until the element is visible.
Instructions
Poll the UI until an element containing the given text / content-desc / resource-id appears. Returns its tap coordinates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | Yes | Substring to look for in text, content-desc or resource-id | |
| serial | No | Device serial (defaults to session or the only device) | |
| timeoutSeconds | No | Give up after this long (default 15) |