Forum Discussion

nastester's avatar
nastester
Regular Contributor
7 months ago
Solved

Chrome driver not working with TestComplete

TestComplete is not downloading the Chrome driver automatically 

so I put the webdriver manually in C:\ProgramData\SmartBear\WebDrivers\chrome

 

and I am getting this error:

TestComplete failed to download the needed WebDriver.
You can download the chrome driver manually and put it in the <ProgramData>\SmartBear\WebDrivers\chrome folder.

 

My TC version is latest: 15.56.2.7 x64

My Chrome web browser version is: 117.0.5938.132 (64-bit)

 

But I am trying to launch Chrome headless via:

 

function launchHeadlessBrowser()
{
var server = "localhost";
var capabilities = {
"browserName": "chrome",
"screenResolution": "1920x1080"
};

Browsers.RemoteItem(server, capabilities).Run(Project.Variables.url);
}

  • TestComplete still isn't automatically downloading the Chrome webdriver like it is with Edge. 

    But if we download the webdriver from the web and add to the ProgramData folder, it does work. But the name of the driver needs to be chromedriver_119.exe  (or whatever version you are using)

6 Replies

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Do you have Intelligent Quality add-on for TestComplete, as this is required for headless browsers.

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Also, ensure it's enabled.

     

    I found the documentation for headless a bit misleading. I thought it would be possible to download the driver into WebDrivers folder for it to work, if you don't have Intelligent Quality. I guess to use Browsers.RemoteItem method requires Intelligent Quality

     

     

    • nastester's avatar
      nastester
      Regular Contributor

      Yeah I think you are right and yes I have it enabled

  • nastester's avatar
    nastester
    Regular Contributor

    TestComplete still isn't automatically downloading the Chrome webdriver like it is with Edge. 

    But if we download the webdriver from the web and add to the ProgramData folder, it does work. But the name of the driver needs to be chromedriver_119.exe  (or whatever version you are using)