diff --git a/conf.e2e.js b/conf.e2e.js index b308fa06..eb0ad698 100644 --- a/conf.e2e.js +++ b/conf.e2e.js @@ -171,4 +171,8 @@ if (argv.ie) { }; } +if (argv.seleniumAddress) { + config.seleniumAddress = argv.seleniumAddress; +} + exports.config = config; diff --git a/run-e2e.js b/run-e2e.js index 298c7ae3..9b7bb856 100644 --- a/run-e2e.js +++ b/run-e2e.js @@ -49,6 +49,10 @@ function launchProtractor(suit) { protractorParams.push('--firefox'); } + if (argv.seleniumAddress) { + protractorParams.push('--seleniumAddress=' + seleniumAddress); + } + child_process.spawnSync('protractor', protractorParams, {stdio: "inherit"}); }