Selenium WebDriver Tutorial #25 – How to Handle Multiple Windows in Selenium

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 the new window or tab on 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 method to switch between windows and tabs.