Skip to main content
bash TV

Playwright Automation: Handle Multiple windows Like a Pro

PrinceAutomationDestination

27 views13 Sept 2026

YouTube

Window Handling in Playwright | New Tab & Popup Handling In this video, learn how to handle new tabs and browser windows in Playwright with TypeScript. We’ll see how Playwright captures a newly opened tab using page.waitForEvent('popup') and how to interact with the new `Page` object. I’ll also briefly compare this approach with Selenium, where we typically use getWindowHandles() and switchTo().window() to switch between browser windows. 🔹 Handle new tabs/windows in Playwright 🔹 Use `page.waitForEvent('popup')` 🔹 Work with multiple `Page` objects 🔹 Playwright vs Selenium window handling 🔹 Practical example with TypeScript Perfect for QA Engineers, SDETs, Automation Testers, and anyone learning Playwright. #Playwright #PlaywrightTS #Selenium #TestAutomation #AutomationTesting #QA

Join the discussion

Sign in to join the discussion

Sign in