awaitScreenStable
suspend fun awaitScreenStable(stableFor: Duration = 500.milliseconds, timeout: Duration = device.timeouts.wait, signal: StabilitySignal = StabilitySignal.ALL)(source)
Waits on the device until this package's focused window has stopped changing for stableFor according to signal: the accessibility tree (StabilitySignal.TREE), the window pixels (StabilitySignal.PIXELS, 0.5 % tolerance) or both (default). Content-changed events restart the quiet period. Use it explicitly after an action that starts an animation or a transition; no command waits for this implicitly. A screen that keeps changing (indeterminate spinner, ticker, video) times out with SCREEN_CHANGING. awaitSettled and awaitAnimationEnd are the two single-signal shorthands. Only a device WAIT_TIMEOUT becomes WaitTimeoutException; other failures are CommandExceptions.