---
title: "onAllNodesWithTag"
description: "Finds all semantics nodes identified by the given tag.

For usage patterns and semantics concepts see [SemanticsNodeInteraction]"
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
@CheckResult
fun SemanticsNodeInteractionsProvider.onAllNodesWithTag(
    testTag: String,
    useUnmergedTree: Boolean = false,
): SemanticsNodeInteractionCollection
```


Finds all semantics nodes identified by the given tag.

For usage patterns and semantics concepts see `SemanticsNodeInteraction`

#### Parameters

| | |
| --- | --- |
| testTag | The tag to search for. Looks for exact matches only. |
| useUnmergedTree | If true, searches the unmerged semantics tree instead of the merged semantics tree. |




