await-screen-idle
Wait for the device screen to finish rendering and become stable before performing actions, with configurable timeout and stability checks.
Instructions
Block until the screen has rendered content and stopped changing, or a timeout elapses.
Polls the same accessibility / DOM tree as describe every pollIntervalMs (default 200ms) until it
has content and that content holds identical for minStableMs (default 250ms), or timeoutMs (default
3000ms) is reached. Returns { settled, waitedMs, polls } — settled=false means the screen never went
still before the timeout. Use after a launch/navigation to wait for the UI to render before screenshotting or tapping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Target device id from `list-devices` (iOS UDID, Android serial, or Chromium id). | |
| timeoutMs | No | Max time to wait for the screen to settle before giving up (default 3000). | |
| minStableMs | No | The screen must hold the same content for at least this long to count as settled (default 250). | |
| pollIntervalMs | No | How often to re-read the tree (default 200). |