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

Specifically, the node must be composed, placed and at least a portion of its bounds must be
visible on screen after clipping is applied.

Throws [AssertionError] if the node is not displayed."
type: "function"
---

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


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


```kotlin
fun SemanticsNodeInteraction.assertIsDisplayed(): SemanticsNodeInteraction
```


Asserts that the current semantics node is displayed on screen.

Specifically, the node must be composed, placed and at least a portion of its bounds must be
visible on screen after clipping is applied.

Throws `AssertionError` if the node is not displayed.



