
Once the Switch happens all the driver commands will go to the newly focused window. In order to shift focus from Parent Window to any child window we have to use the following command on WebDriver – WebDriver.SwitchTo().window(String windowHandle) This command takes in a window handle and switches the driver context on that window. By default the focus is always on the Parent window, please see the screenshot above. There is a concept of current focused window which means that all selenium webdriver commands will go to the focused window. Handling Multiple Windows in Selenium WebDriver Gain In-Depth Knowledge in Selenium Training from MNC Experts Advanced Digital Marketing Masters Program.Digital Project Manager Masters Program.Artificial Intelligence Masters Program.ITIL Managing Professional Masters Program.ITIL Expert Capability Stream Masters Program.Java Full Stack Developer Masters Program.Digital Marketing Associate Masters Program.Robotic Process Automation (RPA) Training.
