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

# newTab

> Open a URL in a new tab and switch to it.

Opens the URL in a new tab in the same browser context and makes that tab active
for subsequent steps.

## Parameters

| Parameter | Type      | Required | Description                                                           |
| --------- | --------- | -------- | --------------------------------------------------------------------- |
| `url`     | `string`  | Yes      | URL to load in the new tab.                                           |
| `timeout` | `number`  | No       | Maximum navigation time in milliseconds.                              |
| `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

URL as a single string.

```yaml theme={null}
- newTab: https://news.ycombinator.com
```

## Examples

```yaml theme={null}
- newTab:
    url: http://localhost:4173/practice-tab-search
    timeout: 30000
```

```yaml theme={null}
- newTab:
    url: https://www.salesforce.com/
```

## Related

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