Forum Discussion

wynfranc100's avatar
wynfranc100
Occasional Contributor
4 years ago

Headless test run on Chrome with different App port

I have a script that runs the web tests fine if I run NON-Headlessly for localhost:9980 url. When I run headlessly , it cannot run the application in port 9980 (random port).  Any tips on how to run if localhost web app is in different port? also which version of chromedriver can run headlessly for Chrome  Current browser version  96.0.4664.45?

 

var server = "http://localhost:9515";
var capabilities = {
"goog:chromeOptions": {
"args": ["--headless"]
}
};

Browsers.RemoteItem(server, capabilities).Run('http://localhost:9980')  

 

 

 

  • never mind, I updated the chromedriver to a later version and it now works without changing the script

  • wynfranc100's avatar
    wynfranc100
    Occasional Contributor

    never mind, I updated the chromedriver to a later version and it now works without changing the script

  • Kenneth1's avatar
    Kenneth1
    Occasional Visitor

    Headless Chrome is shipping in Chrome 59. It's a way to run the Chrome browser in a headless environment. Essentially, running Chrome without chrome! It brings all modern web platform features provided by Chromium and the Blink rendering engine to the command line.

     

    MyBalanceNow