Handling Multiple Browsers

Selenium Element Locators, Inspecting Elements, Selenium WebDriver API Commands and Writing Selenium Test Cases.
Post Reply
Vijay Kumar Varma
Posts: 58
Joined: Mon Nov 26, 2018 1:51 am

Handling Multiple Browsers

Post by Vijay Kumar Varma » Thu Dec 06, 2018 2:50 pm

How to handle multiple browsers instants using Selenium WebDriver?

Posts: 20
Joined: Thu Dec 06, 2018 11:50 am

Re: Handling Multiple Browsers

Post by Imran » Sun Dec 09, 2018 1:37 am

In Selenium WebDriver software testing tool, We can use "WebDriver.getWindowHandles()" to get the handles of all opened windows by webdriver and then we can use that window handle to switch from from one window to another window.

Selenium WebDriver has built in "WebDriver.switchTo().window()" method available to switch from one window to another window so it is very easy to handle multiple windows in webdriver.

Post Reply

Return to “Selenium WebDriver”