Skip to main content
bash TV

Playwright in Action #5 | How to Handle Multiple Tabs and Playwright with TypeScript

Script and Execute

48 views1 Nov 2026

YouTube

In this practical Playwright tutorial, we will learn how to handle multiple browser tabs and multiple browser windows using Playwright with TypeScript. When we click a button or link, an application may open a new tab or a separate browser window. As automation testers, we need to handle these new pages, switch between them, and validate the required information. In this video, we will cover: ✅ How to handle multiple tabs in Playwright ✅ How to handle new tabs and popups using page.waitForEvent('popup') ✅ How to handle multiple browser windows using context.waitForEvent('page') ✅ How to work with multiple Page objects ✅ How to wait for newly opened pages ✅ How to validate page titles and URLs ✅ How to interact with elements in newly opened tabs and windows ✅ How to debug and validate the automation flow Practice Website: https://playwrightautomation.com/practice.html Concepts Covered: Playwright with TypeScript BrowserContext Page object page.waitForEvent() context.waitForEvent() Multiple tabs and windows Assertions and debugging This tutorial is suitable for beginners who want to improve their practical Playwright automation skills. Subscribe to Script and Execute for more Playwright tutorials, automation testing concepts, and interview preparation. #Playwright, #TypeScript, #AutomationTesting, #PlaywrightTutorial, #MultipleTabs, #MultipleWindows, #PopupHandling, #BrowserAutomation, #SoftwareTesting, #PlaywrightWithTypeScript, #AutomationTestingForBeginners, #ScriptAndExecute

Join the discussion

Have something to add?

Sign in to reply, follow this thread, and earn XP when your answer helps someone.