Playwright handles browser contexts and page events really well, so switching between windows or monitoring popups is straightforward.