scrollToNode
fun SemanticsNodeInteractionsProvider.scrollToNode(target: SemanticsMatcher, container: SemanticsNodeInteraction? = null, useUnmergedTree: Boolean = false): SemanticsNodeInteraction(source)
Scrolls a container until a node matching target is composed, and returns the target.
Without container, the innermost scrollable node already holding the target is used; when the target is not composed yet, as with a far-away lazy-list item, the largest vertical container from scrollContainer is searched instead.
Return
The revealed node.
Parameters
target
Selects the node to reveal.
container
The container to scroll, or null to choose one.
useUnmergedTree
Whether to search the unmerged semantics tree for the target.