---
title: "assertIsNotEnabled"
description: "Asserts that the current semantics node is not enabled.

Throws [AssertionError] if the node is enabled or does not defined the property at all."
type: "function"
---

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


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


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


Asserts that the current semantics node is not enabled.

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



