Forum Discussion

wynfranc100's avatar
wynfranc100
Occasional Contributor
3 years ago

Run web app from localhost and headless stopped working - Browsers.RemoteItem

Hi.

 

I used to be able to run my web app locally and now I cannot anymore. Even the sample from Smartbear is not working.   How do you fix this? thanks

 

function Test_Chrome_Headless()
{
var server = "localhost";
var capabilities = {
browserName: "chrome",
screenResolution: "1920x1080"
};

var url = "https://services.smartbear.com/samples/TestComplete15/smartstore/";
Browsers.RemoteItem(server, capabilities).Run(url);

}

 

 

  • wynfranc100's avatar
    wynfranc100
    3 years ago

    I resolved this. I downloaded a newer version of chromedriver that matches my browser. Looks good now. 

  • Hi wynfranc100 ! 

     

    What type of error are you encountering when running this sample code? If you could post a screenshot that would help us to determine where the issue may lie here. 

      • wynfranc100's avatar
        wynfranc100
        Occasional Contributor

        and I can connect to localhost from the browser manually