ui_wait_for_element
Wait for a UI element to appear on an Android device screen. Polls using text, class, resource ID, or content description until match or timeout.
Instructions
Wait for a UI element to appear on screen. Polls the UI until the element matches criteria or timeout is reached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text content to search for | |
| serial | No | Device serial number | |
| className | No | Class name to match exactly | |
| timeoutMs | No | Maximum time to wait in milliseconds (default 15000) | |
| exactMatch | No | If true, text and contentDesc require exact matches | |
| resourceId | No | Resource ID to match exactly | |
| contentDesc | No | Content description to search for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| success | Yes |