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.

LambdaTest

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

Start Free Testing
LambdaTest

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

Learn More
LambdaTest

Test your web or mobile apps

Test orchestration and execution cloud of 3000+ browsers and OS

Support

24/7 support

Security

Enterprise grade security

Cloud

Fastest test execution cloud