SelectorNarrowing

data class SelectorNarrowing(val selector: String, val matches: Int, val needed: Int, val parts: List<NarrowingPart>)(source)

Why a selector found no node (CommandException.narrowing, WaitTimeoutException.narrowing), read once on the device right after the failure.

Constructors

Link copied to clipboard
constructor(selector: String, matches: Int, needed: Int, parts: List<NarrowingPart>)

Properties

Link copied to clipboard

Nodes the selector matches with its first() / at(n) ignored (capped at 1000).

Link copied to clipboard
val needed: Int

Matches the pick needs: n + 1 for at(n), otherwise 1.

Link copied to clipboard

With no match and several parts: each part, in order. Otherwise empty.

Link copied to clipboard

The selector in builder syntax.

Functions

Link copied to clipboard

The narrowing as indented lines, as exception messages show it.