Failed to connect to selenium server to execute webdriverIO test

i, m has a runtime error when i run webdriverIO test using console.

this is an error Failed to connect to selenium server to execute webdriverIO test.

I can access my selenium server with a browser ( http: // localhost: 4444 / wd / hub / static / resource / hub.html ) but it still doesn't work.

Please help me.

Many thanks for the help.

+3


source to share


1 answer


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

Specifically by adding:



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

Worked for me.

+6


source







All Articles