Forum Discussion

nastester's avatar
nastester
Regular Contributor
2 years 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);
}

6 Replies

    • Largent803's avatar
      Largent803
      Contributor

      My problem is the object name should not be changing. I can put in new data with a new record within 15 minutes that uses the same data. So the object name doesn't change. In fact the title of the object is the same. In my example the name of object is Keep and it is a button. But somehow it loses this mapping. In this case the test is to copy data from a Word file into a websites textbox. It also does the same with a Excel spreadsheet data. After I paste the data into my textbox the dialog Keep comes up to so that this verified as information that is needed to be kept.

      • Marsha_R's avatar
        Marsha_R
        Icon for Champion Level 3 rankChampion Level 3

        If the object name needs to be static, then that's something to discuss with your developers.  TestComplete just reads what it finds, it doesn't create the object names.

         

        In the meantime, the wildcards will keep the changing object name from affecting your tests. It's a common need among TestComplete users.