Software Quality Assurance & Testing Stack Exchange is a question and answer site for
software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.
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()".