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 instanceWhat 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.
Last updated

