WaitTimeoutException

class WaitTimeoutException(val description: String, val serial: String, val elapsedMs: Long, val polls: Int = 0, val lastObservation: String? = null, cause: Throwable? = null, val reason: WaitReason? = null, val matchCount: Int? = null, val lastState: ElementSnapshot? = null, val conditionParts: List<ConditionPart> = emptyList(), val narrowing: SelectorNarrowing? = null) : TapException(source)

A wait ran out of time. Carries what was observed so the failure is diagnosable without a rerun: reason and matchCount for the waits the device runs (visible, one, gone, the state waits, App.awaitVisible, App.awaitScreenStable), lastState for a state wait whose node never reached the state, lastObservation and polls for the ones the client polls.

Constructors

Link copied to clipboard
constructor(description: String, serial: String, elapsedMs: Long, polls: Int = 0, lastObservation: String? = null, cause: Throwable? = null, reason: WaitReason? = null, matchCount: Int? = null, lastState: ElementSnapshot? = null, conditionParts: List<ConditionPart> = emptyList(), narrowing: SelectorNarrowing? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

With WaitReason.STATE_NOT_REACHED: each part of the condition on that same node, and whether it held.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A state wait's node as the device read it at the end (WaitReason.STATE_NOT_REACHED); null otherwise.

Link copied to clipboard
Link copied to clipboard

Matches at the last poll of visible / one / gone (capped at 1000).

Link copied to clipboard
open val message: String?
Link copied to clipboard

With reason from visible / one / a state wait: which part of the selector ruled the nodes out, read after the deadline. Null otherwise.

Link copied to clipboard
val polls: Int
Link copied to clipboard

Why the device-side condition was still unmet at its last poll; null for client-polled waits.

Link copied to clipboard

Partial scan evidence, without replacing the original command error type/code.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard