HomeSelenium

New Selenium IDE – Cross Browser Testing using Command Line Runner

New Selenium IDE – Cross Browser Testing using Command Line Runner

As part of explaining all the new features in the latest Selenium IDE, I will explain performing Cross-Browser Testing using Command Line Runner in Selenium IDE. (i.e. Executing the Tests in Selenium IDE in different supported browsers)

Let’s get started.

New Selenium IDE – Cross Browser Testing using Command Line Runner

Follow the below steps for executing the Selenium IDE tests in different browsers 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) 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) 

3) We can execute the following commands in the command line to specify the browser on which we want to execute our Selenium IDE tests.

selenium-side-runner -c "browserName=chrome"
selenium-side-runner -c "browserName=firefox"
selenium-side-runner -c "browserName='internet explorer'"
selenium-side-runner -c "browserName=edge"
selenium-side-runner -c "browserName=safari"

4) Let’s say if you want to execute your Selenium IDE tests on chrome browser, follow the steps provided in the below article.

New Selenium IDE – Executing Tests on a Chrome browser using the command line runner

5) In order to execute the Selenium IDE Tests on firefox browser, follow the steps provided in the below article.

New Selenium IDE – Executing Tests on a Firefox browser using the command line runner

6) In order to execute the Selenium IDE Tests on the Internet Explorer browser, follow the steps provided in the below article.

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

Here concludes the practical demonstration of Cross Browser Testing 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.

Comments (1)

  • when i ran the test on firefox got an error as “SessionNotCreatedError: Expected browser binary location, but unable to find binary in default location, no ‘moz:firefoxOptions.binary’ capability provided, and no binary flag set on the command line” how to fix this? have updated the firefox driver and mentioned its environment too.

    Tried running it with headless options. Changed the location of firefox installer and tried with updating the env path as well. nothing really helped. Where am i going wrong? Please advice!

    Reply

Leave a Reply

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

For FREE Testing Tutorials & Videos

X
Open chat
Contact Us on Whatsapp