We're here to help

Resolving failed to create ChromeDriver error

In some cases you may experience compatibility issues when Google releases new versions of the Google Chrome browser. This can prevent your Provar tests from running correctly.

Users affected by this issue generally see a failed to create ChromeDriver error when attempting to execute test cases in any run mode, including via Apache Ant in conjunction with any continuous integration solution.

See example error message below.

To resolve this issue you should update your ChromeDriver version. The recommended way to do this is by enabling Provar’s auto-update feature, which will automatically download your compatible driver.

 

Enabling Auto-Update


Step 1: Enable Provar’s auto-update feature (ChromeDriver versioning) by making the following entry in the provar.ini file at the installed location. Typically this is added to the end of the script.

-Dcom.provar.chromedriver.versioningSupported=true

Example (click to enlarge):

For Apache Ant execution, the user can use the following commands to set this variable:

For Windows Set ANT_OPTS to:

-Dcom.provar.chromedriver.versioningSupported=true

For Linux or Mac Export ANT_OPTS to:

-Dcom.provar.chromedriver.versioningSupported=true

Step 2: Delete any ChromeDriver folder inside the user home folder. {UserHome}/Provar/.chromeDriver. Note: Ensure that there are no ChromeDriver processes running. Kill the processes if there are any.

Step 3: Execute the test case to launch the browser session.

 

What should I do if I don’t have permissions to update my provar.ini file?


Refer to this help page for information on an alternative way of overriding your ChromeDriver version using your project’s lib folder.

If you implement this solution and are still encountering difficulties, please contact support@provartesting.com for additional help.