Auto

@Serializable
@SerialName(value = "auto")
data class Auto(val raw: String, val index: Int? = null) : Selector

Smart selector that attempts to match by Modifier.testTag first, and falls back to matching by visible text substrings.

Constructors

Link copied to clipboard
constructor(raw: String, index: Int? = null)

Properties

Link copied to clipboard
open override val index: Int?

Optional index to pick a specific node if multiple match the query.

Link copied to clipboard
open override val raw: String

The raw query string.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Selector.resolveNode(nodes: List<NodeSnapshot>, requireVisible: Boolean = true): ResolvedSelector