Hi,
I run a test with one browser, one context, two tabs. The test runs in both tabs fine: first in tab 1, then tab 2, then finishes in tab 1 again. However, I see only the first created tab during test run, which is tab 1.
Is there any way in playwright to switch to tab where the test is actually running?
This thread is trying to answer question "Is there any way in Playwright to switch to the tab where the test is actually running?"
Oh I knew there was something like that, I had just forgotten what it was! https://playwright.dev/docs/api/class-page#page-bring-to-front
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].