onAllNodesWithText

Function

Common
fun SemanticsNodeInteractionsProvider.onAllNodesWithText(
    text: String,
    substring: Boolean = false,
    ignoreCase: Boolean = false,
    useUnmergedTree: Boolean = false,
): SemanticsNodeInteractionCollection

Finds all semantics nodes with the given text.

For usage patterns and semantics concepts see SemanticsNodeInteraction

Parameters

textThe text to search for.
substringIf true, allows matches where the label is a substring of the content description.
ignoreCaseIf true, does a case-insensitive search.
useUnmergedTreeIf true, searches the unmerged semantics tree instead of the merged semantics tree.