Forum Discussion

Obinna's avatar
Obinna
Occasional Contributor
3 years ago

Unable to run Keyword tests on a headless browser

We are unable to run simple scripts and functional keyword test scripts via headless browser.We keep getting the error below when we attempt to run the code snippet copied from the testcomplete documentation;function Test_Chrome_Headless(){var server = "localhost";var capabilities = {browserName: "chrome",screenResolution: "1920x1080"};var url = "google.com";Browsers.RemoteItem(server, capabilities).Run(url);}The error displays states " Unable to connect to the remote browser."The details states;Reason: Invalid URI: The format of the URI could not be determined.There was an attempt to run the remote browser with the following capabilities:{"browserName" : "chrome","screenResolution" : "1920x1080"}The hub URL: localhost