1 Answer
1

WebDriver offers the ability to cope with multiple windows. This is
done by using the "WebDriver.switchTo().window()" method to switch to
a window with a known name. If the name is not known, you can use
"WebDriver.getWindowHandles()" to obtain a list of known windows. You
may pass the handle to "switchTo().window()".