As part of explaining all the new features in the latest Selenium IDE, I will explain executing Tests on Chrome browser using Command Line Runner in Selenium IDE.
Let’s get started.
New Selenium IDE – Executing Tests on Chrome browser using the command line runner
Follow the below steps for executing the Selenium IDE tests in chrome browser using the Command Line Runner (i.e. SIDE Runner)
1) Let’s record a sample test in Selenium IDE as shown below:
Save the project having this Test into any folder in your machine as shown below:
2) If not configured, configure the Command Line Runner (i.e. SIDE Runner) using the steps provided at the below link:
Note1: We have to install the chrome driver in the command line as explained in the above article.
Note2: We have to set the path to the chrome driver exe file in window machine as explained in the above article.
3) If we have to execute Selenium IDE Tests on Chrome browser, we have to execute the below command in command line runner:
selenium-side-runner -c "browserName=chrome" C:\Users\arunm\Desktop\Projs\Project1.side
Note: The above command provides the browser name on which the test to be executed, 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 Chrome browser as shown below:
Once the Selenium IDE test is executed completely on chrome browser, the test results will be displayed as shown below:
Here concludes the practical demonstration of executed Selenium IDE tests on Chrome 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)
- > Check complete Selenium Tutorial Contents here (Click here)
Please leave your questions/comments/feedback below.
Happy Learning 🙂
On a mission to contribute to the Software Testing Community in all possible ways.