> ## Documentation Index
> Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# checkScreenDoesNotContain

> Assert that text is absent from the screen.

Deterministically asserts that the given text does **not** appear on the screen.
The simplified form takes the text as a single string.

## Parameters

| Parameter | Type      | Required | Description                                                 |
| --------- | --------- | -------- | ----------------------------------------------------------- |
| `text`    | `string`  | Yes      | Text expected to be absent.                                 |
| `timeout` | `number`  | No       | Milliseconds to wait while confirming the text is absent.   |
| `saveAs`  | `string`  | No       | Variable to store this step's return value on `env.<name>`. |
| `retries` | `number`  | No       | Times to retry the step on failure before failing the test. |
| `skipped` | `boolean` | No       | Skip this step at execution time.                           |

## Shorthand

Text as a single string.

```yaml theme={null}
- checkScreenDoesNotContain: Error
```

## Examples

```yaml theme={null}
- checkScreenDoesNotContain:
    text: Error
    timeout: 5000 # keep checking for 5s that it never appears
```

## Related

* [Test format](/core-concepts/test-format)
* [checkScreenContains](/reference/mobile-commands/check-screen-contains)
