Selenium is an efficient tool and it is most widely used by major software QA companies.
There are some inbuilt methods available to handle multiple windows opened.
Below are the methods that work best to handle this scenario:
- getWindowHandles(): This method is used to get the handle of all the opened windows. This method returns a set of strings.
- getWindowHandle(): This method gets the window handle of a currently opened window.
- switchTo(): This method is used to switch the controller to the desired window.
- action(): This method is used to perform the desired action.
Post a Comment