Auto

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

Selector that attempts to match by explicit Compose testTag first, falling back to matching by visible text substring if no matching tag is found.

Constructors

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

Properties

Link copied to clipboard
open override val index: Int?

Optional 0-indexed constraint to pick a specific node if multiple match the query.

Link copied to clipboard
open override val raw: String

The raw query string or value used for matching.

Functions

Link copied to clipboard

Returns a copy of this Selector constrained to target the element at the specified 0-indexed position index.

Link copied to clipboard

Returns a copy of this Selector constrained to target the first matching element (index 0).

Link copied to clipboard

Returns a copy of this Selector constrained to target the last matching element (index -1).