Couldn't connect to selenium server to execute a webdriverIO test

Alex picture Alex · Jul 8, 2015 · Viewed 7.7k times · Source

i,m having a runtime error when i execute a webdriverIO test by console.

this is the error Couldn't connect to selenium server to execute a webdriverIO test.

I can access to my selenium server by browser (http://localhost:4444/wd/hub/static/resource/hub.html) but its still not working.

Please, can anyone help me.

thanks a lot for the help.

Answer

onearmfrog picture onearmfrog · Jul 9, 2015

Have you tried this solution? https://github.com/webdriverio/webdriverio/issues/602

Specifically, adding:

var options = { desiredCapabilities: { browserName: 'chrome' }, host: 'localhost', port: 4444 };

Worked for me.