Documentation

Looking for something in particular?

Testing Browser - Chrome Headless

Last Modified:

Headless browser automation allows for testing without the slow loading times of a browser’s UI. This enables tests to be run on servers and virtual machines that don’t have graphics or displays available.

Under the menu bar, selecting Chrome Headless from the browser selection icon.

To run tests in Chrome’s headless mode, use the drop down browser menu to select Chrome – Headless.

Selecting this option will cause Run and Debug modes to run tests without launching the browser. Test Builder mode is unaffected by this option and will always launch a Chrome browser to enable test building.

Run with ANT

The Chrome Headless option can also be selected when generating a build file using Run under ANT:

In the ANT Dialog box, the web browser can be selected as Chrome Headless under the second drop down.

It appears in the Build.XML as follows:

In the Build.xml file generated for ANT runs, the Run-Test_Case function will have the webBrowser variable set to

Chrome headless in _chromeOptions

Previously Provar supported running tests headlessly by configuring a _chromeOptions environment variable. This option is still supported and settings defined under a _chromeOptions variable will continue to work in the same manner as before.

If a situation arises where there is a conflict between the Web Browser setting and the setting defined under _chromeOptions, preference will be given to the _chromeOptions setting.

This means that, if headless is enabled in _chromeOptions but Web Browser is set to standard Chrome (non-headless), Provar will still run Chrome in headless.

Read more about Testing Browser Options.


Feedback

Was this article helpful for you?
Documentation library

Trying to raise a case with our support team?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.

Scroll to Top