Continuous Test Orchestration And Execution Platform Online

Perform automated and live-interactive testing on 3000+ real desktop and mobile devices online.

Can Selenium handle a window-based pop-up?

Yes, Selenium WebDriver can handle window-based pop-ups. On clicking a link or a button, another window may open with information or an advertisement. The getWindowHandles and getWindowHandle methods are used to manage windows. The getWindowHandles method stores all the IDs of opened windows as a Set data structure.

The getWindowHandles method holds all the opened window handle ids, so we can use the iterator and next methods to iterate through them.


Test your websites, web-apps, or mobile apps seamlessly with LambdaTest.

Start Free Testing

Earn resume-worthy Selenium certifications that help you land a top job.

Learn More

Test your web or mobile apps

Test orchestration and execution cloud of 3000+ browsers and OS


24/7 support


Enterprise grade security


Fastest test execution cloud