---
title: "onAllNodesWithContentDescription"
description: "Finds all semantics nodes with the given label as content description.

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.onAllNodesWithContentDescription(
    label: String,
    substring: Boolean = false,
    ignoreCase: Boolean = false,
    useUnmergedTree: Boolean = false,
): SemanticsNodeInteractionCollection
```


Finds all semantics nodes with the given label as content description.

For usage patterns and semantics concepts see `SemanticsNodeInteraction`

#### Parameters

| | |
| --- | --- |
| label | The text to search for. |
| substring | If true, allows matches where the label is a substring of the content description. |
| ignoreCase | If true, does a case-insensitive search. |
| useUnmergedTree | If true, searches the unmerged semantics tree instead of the merged semantics tree. |




