Selenium Java - Handling Windows, Frames, and Alerts
You wrote this code to switch to a new window:
But it always switches to the original window. What is the likely problem?
Sethandles = driver.getWindowHandles(); String newWindow = handles.iterator().next(); driver.switchTo().window(newWindow);
But it always switches to the original window. What is the likely problem?
