---
title: "assertAll"
description: "Asserts that all the nodes in this collection satisfy the given [matcher].

This passes also for empty collections."
type: "function"
---

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


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


```kotlin
fun SemanticsNodeInteractionCollection.assertAll(
    matcher: SemanticsMatcher
): SemanticsNodeInteractionCollection
```


Asserts that all the nodes in this collection satisfy the given `matcher`.

This passes also for empty collections.

#### Parameters

| | |
| --- | --- |
| matcher | Matcher that has to be satisfied by all the nodes in the collection. |




