Selenium Java - Handling Windows, Frames, and Alerts
Examine the code:
What is a potential issue when multiple windows are open?
Sethandles = driver.getWindowHandles(); String handle = handles.iterator().next(); driver.switchTo().window(handle);
What is a potential issue when multiple windows are open?
