Text

@Serializable
@SerialName(value = "text")
data class Text(val value: String, val index: Int? = null) : Selector

Selector that strictly matches nodes containing the specified visible text value.

Constructors

Link copied to clipboard
constructor(value: 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.

Link copied to clipboard

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