---
title: "invokeGlobalAssertions"
description: "Executes all of the assertions registered by [addGlobalAssertion]. This may be useful in a custom
test action."
type: "function"
---

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


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


> **Deprecated** This API has been removed and its intended usage to run accessibility checks can now be done via `SemanticsNodeInteraction.tryPerformAccessibilityChecks()`

```kotlin
@ExperimentalTestApi
fun SemanticsNodeInteraction.invokeGlobalAssertions(): SemanticsNodeInteraction
```


Executes all of the assertions registered by `addGlobalAssertion`. This may be useful in a custom
test action.

#### Returns

| | |
| --- | --- |
|  | the `SemanticsNodeInteraction` that is the receiver of this method |




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


> **Deprecated** This API has been removed and its intended usage to run accessibility checks can now be done via `SemanticsNodeInteraction.tryPerformAccessibilityChecks()`

```kotlin
@ExperimentalTestApi
fun SemanticsNodeInteractionCollection.invokeGlobalAssertions():
    SemanticsNodeInteractionCollection
```


Executes all of the assertions registered by `addGlobalAssertion`, each of which will receive the
first node of this collection. This may be useful in a custom test action.

#### Returns

| | |
| --- | --- |
|  | the `SemanticsNodeInteractionCollection` that is the receiver of this method |




