HomeSelenium

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

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

As part of explaining all the new features in the latest Selenium IDE, I will explain the configuration of Selenium IDE Command Line Runner.

Selenium IDE Command Line Runner is also known as Selenium IDE Runner or SIDE Runner in short. This command-line runner makes Parallel Execution and Cross Browser Testing possible in Selenium IDE.

In this article, I will explain practically the steps for configuring Selenium IDE Command Line Runner.

Let’s get started.

New Selenium IDE – Configuring Command Line Runner

Follow the below steps for configuring the Selenium IDE Command Line Runner in a step by step manner:

In order to install the Selenium IDE Command Line Runner, we have to first install nodejs in our machine.

Using nodejs we can install several npm packages available on the web. As Selenium IDE Command Line Runner also comes as the npm package, we have to first install nodejs and then using it we have to install the Selenium IDE Command Line Runner npm package.

I will explain the installation of nodejs in the below steps.

1) Open https://nodejs.org/en/download/ in any browser. Scroll down and click on Previous Releases

2) On Previous Releases, page Click on Node.js 10.x

3) Now Click on nodejs v10.15.3 .msi installer

4) After Downloading the Installer file, Start installing it. Below are the installation screenshots.

5) Open the command prompt in your machine and run node -v in the command prompt. The installed version of node.js should appear on command prompt.

Like-Like-wise we can confirm for NPM as well by writing npm -v.

Configuring SIDE Runner - node and npm versions

This shows that nodejs has been installed and configured successfully.

6) As nodejs is now installed and configured successfully, we can install the Selenium IDE command line runner (i.e. SIDE Runner) by executing the below command in the above-opened command prompt as shown below:

 

Configuring SIDE Runner - install

7) We have to also install the npm packages for different browser drivers too.

For executing the Selenium IDE Tests on Chrome Browser using the command line SIDE Runner, we need to install the ChromeDriver by executing the below command in the above command prompt:

Configuring SIDE Runner - chrome driver

For executing the Selenium IDE Tests on Firefox Browser using the command line SIDE Runner, we need to install the geckodriver by executing the below command in the above command prompt:

Configuring SIDE Runner - gecko driver

For executing the Selenium IDE Tests on Internet Explorer Browser using the command line SIDE Runner, we need to install the IEDriver by executing the below command in the above command prompt:

Configuring SIDE Runner - ie driver

For executing the Selenium IDE Tests on Edge Browser using the command line SIDE Runner, we need to install the EdgeDriver by executing the below command in the above command prompt:

Configuring SIDE Runner - edge driver

8) 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

Now, in the command prompt type the below command to execute the saved Project1.side

Note: I have given the path of the saved Selenium IDE project in the above command

Configuring SIDE Runner - execute side

Observe that the recorded Test in the project failed to run as shown below:

Configuring SIDE Runner - chrome driver not found

Let’s follow the below step for adding the chromedriver path to your windows machine.

9) Open your chrome browser and check the version as shown below:

Configuring SIDE Runner - chrome version

Go to seleniumhq.org/download page and click on the latest link of Chrome Driver as shown below:

Configuring SIDE Runner - latest

In the displayed page, download the chrome driver which matches with the chrome browser version.

As we have Chrome Browser version 76 as shown in the above steps, lets select to download the appropriate chrome driver as shown below:

Configuring SIDE Runner - download compatible chrome driver

In the displayed page, click on windows chrome driver to download as shown below:

Configuring SIDE Runner - chrome driver windows

The Chrome driver for windows will be downloaded as shown below:

Configuring SIDE Runner - downloaded chrome driver

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

Configuring SIDE Runner - chrome driver exe

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

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

Configuring SIDE Runner - copy 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

Now, in the command prompt type the below command to execute the saved Project1.side

Note: I have given the path of the saved Selenium IDE project in the above command

Configuring SIDE Runner - execute side

Observe that the Test got failed again with a different message – ‘Your test suite must contain at least one test’ message as shown below:

Configuring SIDE Runner - test suite failed

Let’s fix the above failure, by adding a Test to the default suite and then saving the project as shown below:

Configuring SIDE Runner - suite added

Now, in the command prompt type the below command to execute the saved Project1.side

Note: I have given the path of the saved Selenium IDE project in the above command

Configuring SIDE Runner - execute side

Observe that the recorded Test in the Project got executed as shown below:

Configuring SIDE Runner - executing

Once the Test got completed execute, the results will be displayed in the command line as shown below:

Configuring SIDE Runner - results

Here concludes the practical demonstration of configuring Selenium IDE 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 *