---
title: "assertIsSelected"
description: "Asserts that the current semantics node is selected.

Throws [AssertionError] if the node is unselected or not selectable."
type: "function"
---

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


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


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


Asserts that the current semantics node is selected.

Throws `AssertionError` if the node is unselected or not selectable.



