> ## 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.

# checkPageDoesNotContain

> Assert that the visible page text does NOT contain a substring.

Inverse of `checkPageContains`.

## Parameters

| Parameter | Type      | Required | Description                                                           |
| --------- | --------- | -------- | --------------------------------------------------------------------- |
| `text`    | `string`  | Yes      | Substring that must NOT appear on the page.                           |
| `timeout` | `number`  | No       | Maximum time in milliseconds to wait.                                 |
| `iframe`  | `string`  | No       | URL or URL pattern of the iframe that contains the target element.    |
| `saveAs`  | `string`  | No       | Name of the variable to write this step's return value to.            |
| `retries` | `number`  | No       | Number of 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}
- checkPageDoesNotContain: Delete Workspace
```

## Examples

```yaml theme={null}
- checkPageDoesNotContain:
    text: "{{ env.HEADER_NAME_MATCHER_FALSE }}"
    timeout: 5000
```

```yaml theme={null}
- checkPageDoesNotContain:
    text: Initializing
    timeout: 60000
```

## Related

* [Writing assertions](/core-concepts/writing-assertions)
* [Check element](/reference/commands/check-element)
* [Test format](/core-concepts/test-format)
