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) : 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, App.awaitVisible, App.awaitScreenStable), 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)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
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
Link copied to clipboard
Link copied to clipboard