Can browser tests switch tabs?

If some actions performed by the Browser test on your application (for instance, a click on a link) lead to opening another tab where you want your Browser test to execute other steps, just record all steps normally. The Browser test is able to switch tabs automatically at test execution to run its steps on the fresh tab.

Note: Your test first needs to interact with the page (for instance, through a click) to be able to perform an assertion on that new page.

Further Reading