80 likes | 262 Views
** 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
E N D
Agenda 01 What is Selenium WebDriver 02 Basic pre-requisites 04 Demo 03 Handling multiple windows www.edureka.co/testing-with-selenium-webdriver
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
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
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
Handling multiple windows Handling multiple windows www.edureka.co/testing-with-selenium-webdriver
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
Why window handles? It helps in easy identification of the ID Set<String> command = driver.get.WindowHandles(); www.edureka.co/testing-with-selenium-webdriver