In this Selenium Webdriver Tutorial, we will learn How to Handle Multiple Windows in Selenium WebDriver.
When you click a link which opens in a new window will focus on the new window or tab on the screen, but WebDriver will not know which window the Operating System considers active.
In order to work with the new window, you will need to switch to it. Selenium WebDriver provides a method to switch between windows and tabs.