Selenium: navigate through windows

Last updated on:

Well sometimes you need to navigate through windows on the screen here is how you do it:

driver.switchTo().window("windowName");

for (String handle : driver.getWindowHandles()) {
    driver.switchTo().window(handle);
}
View Comments

Leave a Comment

Use markdown or basic HTML and be nice.