HomeSelenium

New Selenium IDE – Executing Tests on Internet Explorer browser using the command line runner

New Selenium IDE – Executing Tests on Internet Explorer browser using the command line runner

As part of explaining all the new features in the latest Selenium IDE, I will explain executing Tests on Internet Explorer browser using Command Line Runner in Selenium IDE.

Let’s get started.

New Selenium IDE – Executing Tests on Internet Explorer browser using the command line runner

Follow the below steps for executing the Selenium IDE tests in Internet Explorer browser using the Command Line Runner (i.e. SIDE Runner)

1) Let’s record a sample test in Selenium IDE as shown below:

Configuring SIDE Runner - recorded test

Save the project having this Test into any folder in your machine as shown below:

Configuring SIDE Runner - save project

2) If not configured, configure the Command Line Runner (i.e. SIDE Runner) using the steps provided at the below link:

New Selenium IDE – Configuring Command Line Runner (SIDE Runner) 

Note1: We have to install the ie driver in the command line as explained in the above article.

Also, we have to make sure of the below things in IE browser:

Open IE browser, select Tools > Internet Options as shown below:

Internet Explorer Browser Selenium IDE - options

In the displayed ‘Internet Options’ dialog, click on the ‘Security’ tab and make sure all the below options are enabled as shown below:

Internet Explorer Browser Selenium IDE - enabled

3) If we have to execute Selenium IDE Tests on the Internet browser, we have to execute the below command in command line runner:

Note: The above command provides the browser on which the test to be executed (i.e. Internet Explorer), followed by the Path of the Selenium IDE saved Test file to be executed.

Observe that the Selenium IDE Test will result in the failure on execution – ‘IEDriverServer.exe could not be found on the current Path’ message will be displayed as shown below:

Internet Explorer Browser Selenium IDE - fail

4) Go to seleniumhq.org/download page and click on the below link of IE Driver as shown below:

Internet Explorer Browser Selenium IDE - link

The Internet Explorer driver for windows will be downloaded as shown below:

Internet Explorer Browser Selenium IDE - downloaded

Extract the above-downloaded IE driver zip file and keep it in any folder in your machine as shown below:

Internet Explorer Browser Selenium IDE - driver folder

Now set the path of the above IE driver in your machine by following the below steps:

First, copy the path of the folder in which the downloaded IE driver exe file is available as shown below:

Internet Explorer Browser Selenium IDE - path

Open any folder as shown below:

Configuring SIDE Runner - open any folder

Right-click on ‘This PC’ option and select ‘Properties’ as shown below:

Configuring SIDE Runner - properties

Click or select on the different links, options in sequence as shown below:

Configuring SIDE Runner - click or select

In the displayed ‘Edit Environment variable’, click on ‘New’ button and then paste the path copied in the above step and click on the ‘OK’ button until all dialogs close:

Configuring SIDE Runner - paste

As we have set the path of IE Driver in our machine and in order to execute Selenium IDE Tests on Firefox browser, we have to execute the below command in command line runner:

Note: The above command provides the browser on which the test to be executed (i.e. Internet Explorer), followed by the Path of the Selenium IDE saved Test file to be executed.

Observe that the Selenium IDE Test will be executed in the Internet Explorer browser as shown below:

Internet Explorer Browser Selenium IDE - executing

Once the Selenium IDE test is executed completely on Internet Explorer browser, the test results will be displayed as shown below:

Internet Explorer Browser Selenium IDE - result

Here concludes the practical demonstration of executing Selenium IDE tests on Internet Explorer Browser using Command Line Runner.

In the next article, I will practically demonstrate another new feature in the latest Selenium IDE. (new features in the latest Selenium IDE)

Next Steps:

  • > Check complete Selenium Tutorial Contents here (Click here)

Please leave your questions/comments/feedback below.

Happy Learning 🙂

About Me > Arun Motoori

On a mission to contribute to the Software Testing Community in all possible ways.

If you like this article, share it on LinkedIn using the below button:

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *