<div class='type'>Function</div>


<a id='references'></a>


<h2 id="onnodewithtag-testtag-useunmergedtree">onNodeWithTag</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@CheckResult
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. |