adb_wait_stable
Wait for Android UI to stabilize by polling hierarchy until consecutive dumps match. Use after screen transitions to ensure elements are ready.
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 |