Ask a Question

Unable to run Keyword tests on a headless browser

Occasional Contributor

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 = "";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

Community Hero

I suggest contacting Support directly since the example is failing for you.  Here's the link

[Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
Showing results for 
Search instead for 
Did you mean: