configurable seleniumAddress

stable
Juanfran 2016-05-17 09:16:11 +02:00
parent 7031a80c88
commit 6a1a9e42ac
2 changed files with 8 additions and 0 deletions

View File

@ -171,4 +171,8 @@ if (argv.ie) {
};
}
if (argv.seleniumAddress) {
config.seleniumAddress = argv.seleniumAddress;
}
exports.config = config;

View File

@ -49,6 +49,10 @@ function launchProtractor(suit) {
protractorParams.push('--firefox');
}
if (argv.seleniumAddress) {
protractorParams.push('--seleniumAddress=' + seleniumAddress);
}
child_process.spawnSync('protractor', protractorParams, {stdio: "inherit"});
}