Selenium Java - Handling Windows, Frames, and Alerts
You have multiple browser windows open. Write a code approach to close all windows except the main window using Selenium WebDriver in Java.
getWindowHandles() to get all open windows.close() to close it.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions