adb_wait_stable
Waits for the UI to stabilize by polling the hierarchy until consecutive dumps match, ensuring readiness after transitions or animations.
Instructions
Wait for the UI to stabilize. Polls the UI hierarchy and waits until consecutive dumps produce the same element count and structure. Useful after screen transitions, animations, or content loading before interacting with elements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stableCount | No | Number of consecutive identical dumps required (2-10, default 2) | |
| 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 |