Running Selenium tests on Internet Explorer Browser
The main advantage of Selenium testing is the cross browser testing. So test once written for a browser, can be run on other supported browser as well (off course with little changes :-) ). Let's see how we can run selenium java test on Internet Explorer browser. For this we need - IEDriverServer.exe (it can be downloaded from here ): This is Internet Explorer driver server which is needed by Selenium to execute tests on Internet Explorer browser. We should first follow these steps to make sure that IE is setup correctly so that it can be handled by Selenium properly. In our script, we will be explicitly mentioning which IEDriverServer.exe to use to run tests. Below is a simple test we can run to understand what it takes to run a test on Internet Explorer. Basic steps for creating script: Create a TestNG class in eclipse While creating TestNG class, select these annotations - @BeforeMethod, @AfterMethod Code for the script would as given below – Click on code to u...