---
title: "assertValueEquals"
description: "Asserts the node's value equals the given value.

For further details please check [SemanticsProperties.StateDescription]. Throws [AssertionError]
if the node's value is not equal to `value`, or if the node has no value"
type: "function"
---

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


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


```kotlin
fun SemanticsNodeInteraction.assertValueEquals(value: String): SemanticsNodeInteraction
```


Asserts the node's value equals the given value.

For further details please check `SemanticsProperties.StateDescription`. Throws `AssertionError`
if the node's value is not equal to `value`, or if the node has no value



