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


<a id='references'></a>


<h2 id="assertisfocused">assertIsFocused</h2>

<div class='sourceset sourceset-common'>Common</div>


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


Asserts that the current semantics node has a focus.

Throws `AssertionError` if the node is not in the focus or does not defined the property at all.