awaitVisible

suspend fun awaitVisible(timeout: Duration = device.timeouts.wait)(source)

Waits on the device until this package owns the focused window. Throws WaitTimeoutException only when the device reports WAIT_TIMEOUT; any other failure (driver unhealthy, transport lost, ...) is a CommandException.