Monitoring a scenario with multiple tabs
Certain scenarios may require us to create new or multiple tabs simultaneously. Playwright Test supports this case and, as a consequence, Checkly does as well.
Handling links that open a new tab
By allowing us to wait for the creation of a child tab with context.waitForEvent
, Playwright Test enables us to “catch” it following a click on an element with target="_blank"
, and then seamlessly interact with any of the currently open tabs.
Playwright Test will record videos for each of your tabs. You can find them in your test result for failed checks or in the check editor for passing as well as failing checks for easy debugging.
Playwright’s Trace Viewer displays your tabs conveniently in a waterfall timeline to access all neccessary information:
You can learn more about multi-tab scripts in our Learn Headless section.
Last updated on December 13, 2024. You can contribute to this documentation by editing this page on Github