> For the complete documentation index, see [llms.txt](https://docs.testfirst.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.testfirst.com/testfirst-editor/advanced-test-capabilities/multi-tab-and-multi-window-testing.md).

# Multi-Tab & Multi-Window Testing

You can work with **multiple tabs and browser instances** in the same test.

This allows you to automate complex scenarios such as:

* Navigating across multiple pages
* Comparing views in parallel
* Simulating multiple users or sessions

#### **Multi-Tab Example**

```
Scenario: Work with multiple tabs
    Given browser "Chrome"
    When I visit "https://www.testfirst.com"
    And I click "!See What’s New"
    And I switch to the new tab remembering it as "whats-new"
    And I visit "https://www.testfirst.com/plans" in a new tab
    And I remember the new tab as "plans"
    And I switch to the tab remembered as "plans"
```

#### **Multi-Window Example**

```
Scenario: Use multiple browser instances
    Given browser "Chrome" as "second"
    When I visit "https://testfirst.com"
    And I switch to "second" browser instance
```

#### **What You Can Do**

* Open and switch between tabs
* Launch multiple browser instances
* Switch across tabs and instances
* Close tabs and sessions when done

💡 Always name tabs and browser instances for reliable switching.
