HomeSelenium

New Selenium IDE – Chrome Browser Headless mode using Command Line Runner

New Selenium IDE – Chrome Browser Headless mode using Command Line Runner

As part of explaining all the new features in the latest Selenium IDE, I will explain executing the Selenium IDE Tests in Chrome browser in headless mode.

Before I explain this, we have to first understand – What is Headless mode?

What is Headless Browser mode?

When we generally open any browser say Chrome or Firefox, we can graphically see them as below:

Headless Chrome Selenium IDE - Browser GUI

But, when the Chrome or Firefox browser opens in Headless mode, we won’t see anything on the screen even they are opened in Headless mode (i.e. Invisible mode)

Headless Browser is nothing but a browser without any Graphical User Interface.

Hence we launch any browser in Headless mode, we won’t see anything on the screen.

We can also execute the Automated Tests in headless mode i.e. The browser GUI won’t be visible and our Automated Tests will be executed in invisible mode.

As you have now understood what is Headless Browser mode, I will now explain using the Chrome browser in Headless mode for executing the Selenium IDE tests using Command line runner (i.e. SIDE Runner).

Let’s get started.

New Selenium IDE – Chrome Browser Headless mode using Command Line Runner

Follow the below steps for executing the Selenium IDE tests in Chrome Browser Headless mode 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) 

3) We can execute the following command in the command line to specify the chrome browser along with its specific capability – test headlessly

 

Observe that the Selenium IDE Test got executed in headless mode (i.e. without displaying the browser GUI) and the results got displayed after execution in the command line runner as shown below:

Headless Chrome Selenium IDE - No GUI executed

Here concludes the practical demonstration of execution of Chrome Browser in headless mode 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 *