Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Bounds(val left: Double, val top: Double, val right: Double, val bottom: Double)
Link copied to clipboard
@Serializable
data class NodeSnapshot(val tag: String, val text: String? = null, val visible: Boolean = true, val bounds: Bounds, val zOrder: Int = 0)
Link copied to clipboard
@Serializable
sealed interface Response
Link copied to clipboard
@Serializable
enum ScrollDirection : Enum<ScrollDirection>

Specifies the directional orientation for UI scroll gestures (e.g. scrolling lists or lazy layouts).

Link copied to clipboard
@Serializable
sealed interface Selector

Represents an intent query used to locate target UI nodes in a Compose Multiplatform view tree.

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

Creates a Selector.Auto that attempts to match explicit Compose testTag first, falling back to visible text substring.

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).

Link copied to clipboard

Resolves the effective Selector from a Command. If the command implements Command.HasSelector, returns the explicit selector or falls back to Selector.Auto wrapping Command.HasSelector.tag. Returns null for commands that don't target a UI element (e.g., Ping, GetTree).

Link copied to clipboard
fun tag(value: String): Selector.Tag

Creates a Selector.Tag that strictly matches nodes with the exact Compose testTag specified by value.

Link copied to clipboard

Creates a Selector.Text that strictly matches nodes containing the specified visible value.