---
title: "assertHasClickAction"
description: "Asserts that the current semantics node has a click action.

Throws [AssertionError] if the node is doesn't have a click action."
type: "function"
---

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


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


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


Asserts that the current semantics node has a click action.

Throws `AssertionError` if the node is doesn't have a click action.



