Back to all steps
Switch to another window/tab
Step fields
tab number, URL fragment or _
(text)
Switch to another browser tab. Accepts three kinds of value:
• a tab number - 1 is the leftmost tab, 2 the second from the left and so on (the same numbering as in «Close browser tab»);
• a piece of the URL - switches to the first tab whose URL contains it;
• empty or _ - the last opened tab.
Examples: 2, checkout, _.
If no matching tab shows up the step does not fail the test: the run stays on the current page and a warning goes to the log. All following steps and screenshots run on the selected tab.
• a tab number - 1 is the leftmost tab, 2 the second from the left and so on (the same numbering as in «Close browser tab»);
• a piece of the URL - switches to the first tab whose URL contains it;
• empty or _ - the last opened tab.
Examples: 2, checkout, _.
If no matching tab shows up the step does not fail the test: the run stays on the current page and a warning goes to the log. All following steps and screenshots run on the selected tab.
Usage example
Switch to another browser tab. The value can be one of three kinds:
- a tab number:
1is the leftmost tab,2the second from the left and so on (the same numbering as in «Close browser tab»); - a piece of the URL: switches to the first tab whose URL contains it;
- empty or
_: the last opened tab.
If no matching tab shows up the step does not fail the test: the run stays on the current page and a warning goes to the log.
Examples: 2, checkout, _