Function

onNodeWithTag

Finds a semantics node identified by the given tag.

onNodeWithTag

Source set: Common
public fun SemanticsNodeInteractionsProvider.onNodeWithTag(
    testTag: String,
    useUnmergedTree: Boolean = false,
): SemanticsNodeInteraction

Finds a semantics node identified by the given tag.

For usage patterns and semantics concepts see SemanticsNodeInteraction

Parameters

testTag The tag to search for. Looks for an exact match only.
useUnmergedTree If true, searches the unmerged semantics tree instead of the merged semantics tree.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: