getWindowHandle- Handle multiples windows in Selenium

In the previous post, we discussed different types of alerts. We also learned the commands to handle alerts when they pop up. Now today we are going to discuss how to handle multiple windows in Selenium using Java. There are many scenarios where new windows appear so in that case Selenium WebDriver does not automatically start its operation on new windows; rather we have to give commands to switch to the new window to perform further testing activities. Selenium library has a command, named, getWindowHandle & getWindowHandles to get the address of new window(s). After getting the address of new … Continue reading getWindowHandle- Handle multiples windows in Selenium