Selenium Java - Handling Windows, Frames, and Alerts
What will be the output of the following code?
Assuming there are two windows open with handles "CDwindow-1" and "CDwindow-2".
Sethandles = driver.getWindowHandles(); for (String handle : handles) { System.out.println(handle); }
Assuming there are two windows open with handles "CDwindow-1" and "CDwindow-2".
