Selenium Java - Handling Windows, Frames, and Alerts
Identify the error in this Selenium Java code snippet for switching to a new window:
Setwindows = driver.getWindowHandles(); for (String win : windows) { if (win != driver.getWindowHandle()) { driver.switchTo().window(win); break; } }
