Ask a Question

Unable to run Keyword tests on a headless browser

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

1 REPLY 1
Marsha_R
Community Hero

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

https://support.smartbear.com/testcomplete/message


Marsha_R
[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.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: