---
title: "isNotDisplayed"
description: "Asserts that the current semantics node is not displayed on screen.

If no matching node is found, returns true. If multiple nodes match, throws an [AssertionError]."
type: "function"
---

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


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


```kotlin
fun SemanticsNodeInteraction.isNotDisplayed(): Boolean
```


Asserts that the current semantics node is not displayed on screen.

If no matching node is found, returns true. If multiple nodes match, throws an `AssertionError`.



## Code Examples
### waitForNotDisplayed
```kotlin
fun waitForNotDisplayed() {
    val interaction = composeTestRule.onNodeWithTag("test")
    composeTestRule.waitUntil { interaction.isNotDisplayed() }
}
```

