Closed monolithed closed 8 years ago
Why do you want to do that in the onPrepare hook. You can tweak the service list depending of the host in your config already since it is a normal js file.
I don't want use the onPrepare hook for that )
You can tweak the service list depending of the host in your config already since it is a normal js file.
Could you provide an example?
I tried to pass the services
to the Launcher and that did not work for me.
something like that:
// wdio.conf.js
exports.config = {
// ...
}
if (!/127\.0\.0\.1|localhost|::1/.test(exports.config.host)) {
let index = exports.config.services.includes('selenium-standalone');
if (index) {
exports.config.services.splice(index, 1);
}
}
However I don't know how you've setup WebdriverIO.
Hm, I guess it will work, thanks!
It would be nice to have an additional option to exclude the
selenium-standalone
service fromservices
for remote hosts or something like: