adb_wait_element
Wait for a UI element to appear or disappear on an Android device. Polls the UI hierarchy at regular intervals until the condition is met or timeout expires.
Instructions
Wait for a UI element to appear or disappear. Polls the UI hierarchy at regular intervals until the condition is met or timeout expires. Useful for waiting after navigation, animations, or async content loading.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Match elements containing this text (case-insensitive) | |
| resourceId | No | Match elements with this resource-id (partial match) | |
| contentDesc | No | Match elements with this content-description (partial, case-insensitive) | |
| condition | No | Wait for element to 'appear' (default) or 'disappear' | appear |
| timeoutMs | No | Maximum wait time in ms (1s-60s, default 10s) | |
| pollMs | No | Polling interval in ms (200-5000, default 500) | |
| device | No | Device serial |