---
title: "assertAny"
description: "Asserts that this collection contains at least one element that satisfies the given [matcher]."
type: "function"
---

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


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


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


Asserts that this collection contains at least one element that satisfies the given `matcher`.

#### Parameters

| | |
| --- | --- |
| matcher | Matcher that has to be satisfied by at least one of the nodes in the collection. |




