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

# waitForUrlNotToMatch

> Wait until the page URL stops matching a substring, glob, regex, or domain.

Provide exactly one of `substring`, `glob`, `regex`, or `domain`.

## Parameters

| Parameter         | Type      | Required | Description                                                           |
| ----------------- | --------- | -------- | --------------------------------------------------------------------- |
| `substring`       | `string`  | No       | Match URLs that contain this substring.                               |
| `glob`            | `string`  | No       | Match URLs against a glob pattern.                                    |
| `regex`           | `string`  | No       | Match URLs against a regular expression.                              |
| `domain`          | `string`  | No       | Match all URLs under the given domain.                                |
| `caseInsensitive` | `boolean` | No       | Match case-insensitively.                                             |
| `timeout`         | `number`  | No       | Maximum time in milliseconds to wait.                                 |
| `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

Substring as a single string.

```yaml theme={null}
- waitForUrlNotToMatch: /loading
```

## Examples

```yaml theme={null}
- waitForUrlNotToMatch:
    substring: /loading
    timeout: 30000
```

```yaml theme={null}
- waitForUrlNotToMatch:
    regex: ^.+/auth/callback\?.+
    timeout: 15000
```

## Related

* [Test format](/core-concepts/test-format)
