Using *iexplore for running the Selenium RC Automation tests on Internet Explorer Browser

Using *iexplore for running the Selenium RC Automation tests on Internet Explorer Browser

*iexplore is used to run the Selenium RC Automation Tests on Google Chrome Browser.

Lets Implement This:

1. Replace *firefox with *iexplore in the project explained in our previous post as shown below:

2. Start the Selenium Standalone Server
3. Save and Run the ‘Class15.java’ file by selecting the ‘JUnit Test’ option
4. Observe that the following Script Error is displayed as shown below:

5. We got this Script Error as we are not running the Eclipse IDE in Administrator mode. How to resolve this Script error and Run the Selenium RC Automation Test on Internet Explorer will be explained in the  next steps. In order to run the Eclipse IDE in Administrator mode please follow the below steps.
6. Close the Eclipse IDE by clicking on ‘X’ button as shown below:

7. Ensure that the Eclipse IDE is closed and open the Folder where you have downloaded the Eclipse IDE as shown below:

8. Right click on the ‘eclipse.exe’ file and select ‘Run As Administrator’ option as shown below:

9. Click  ‘Yes’ button if the User Account Control dialog asking the User “Do you want to allow the following program …”  is displayed as shown below:

10. Click ‘Ok’ on the ‘Workspace Launcher’ dialog as shown below:

11. Ensure that the Eclipse IDE is now launched (i.e. in Administrator mode this time).
12. Start the Selenium Standalone Server
13. Save and Run the ‘Class15.java’ file by selecting the ‘JUnit Test’ option and observe that the Test is Run in Internet Explorer without any Script errors this time as shown below:


Watch the below video:

Click here to watch the video.

Download this Project:

 Click here to download this project and import into Eclipse IDE  on your machine.
Advertisements
%d bloggers like this: