Elements

Lazy collection reads, not live nodes or enumeration of a virtualized dataset.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun snapshots(timeout: Duration = device.timeouts.action): List<ElementSnapshot>

One read of current matches in accessibility order (window order, then children before parents). Empty is valid. Not an atomic UI transaction. Staleness fails the whole read; over 1000 matches / 1 MiB fails with PAYLOAD_TOO_LARGE, never silent truncation.

Link copied to clipboard
suspend fun texts(timeout: Duration = device.timeouts.action): List<String?>

Raw texts from one snapshots call; retains nulls, duplicates and empty strings.