1 / 8

How to Handle Multiple Windows in Selenium Webdriver | Edureka

** Selenium Training: https://www.edureka.co/testing-with-selenium-webdriver **<br>This PPTby Edureka helps you understand how to handle multiple windows when you are testing an application using Selenium. Following are the topics covered in this PPT:<br><br>What is Selenium Webdriver?<br>Basic pre-requisites to run the test cases<br>Handling multiple windows in Selenium<br>Demo<br><br>Selenium playlist: https://goo.gl/NmuzXE<br><br>Follow us to never miss an update in the future.<br>YouTube: https://www.youtube.com/user/edurekaIN<br>Instagram: https://www.instagram.com/edureka_learning/<br>Facebook: https://www.facebook.com/edurekaIN/<br>Twitter: https://twitter.com/edurekain<br>LinkedIn: https://www.linkedin.com/company/edureka

EdurekaIN
Download Presentation

How to Handle Multiple Windows in Selenium Webdriver | Edureka

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. www.edureka.co/testing-with-selenium-webdriver

  2. Agenda 01 What is Selenium WebDriver 02 Basic pre-requisites 04 Demo 03 Handling multiple windows www.edureka.co/testing-with-selenium-webdriver

  3. Selenium WebDriver is a programming interface to create and execute test cases Test cases are created and executed using Elements locators/ Object locators/ WebDriver methods What is selenium webdriver It has only a programming interface; not IDE Fast as it interacts with browser directly Each browser has its own driver on which the application runs. WebDriver makes direct calls to the browser www.edureka.co/testing-with-selenium-webdriver

  4. Advantages Open source Simple and concise interface efficient Very fast execution Has support over dynamic webpages Overcomes limitations of selenium 1 www.edureka.co/testing-with-selenium-webdriver

  5. Pre-requisites ❑ Latest version of Java installed ❑ Latest Eclipse-IDE installed ❑ Selenium plugins: Selenium Standalone Server, Selenium IDE ❑ Browser driver for different platforms www.edureka.co/testing-with-selenium-webdriver

  6. Handling multiple windows Handling multiple windows www.edureka.co/testing-with-selenium-webdriver

  7. What is Window handling? A window handle is a unique identifier that Windows assigns to each window created • Get.WindowHandle(): gets the details of the current window • Get.WindowHandles(): gets the details of all the windows • SwitchTo: helps in switching between the windows • Action: command used to perform actions on the current window www.edureka.co/testing-with-selenium-webdriver

  8. Why window handles? It helps in easy identification of the ID Set<String> command = driver.get.WindowHandles(); www.edureka.co/testing-with-selenium-webdriver

More Related