From 6a1a9e42ac6c1e439a699c62e88f7dcf7af4bdf0 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Tue, 17 May 2016 09:16:11 +0200 Subject: [PATCH] configurable seleniumAddress --- conf.e2e.js | 4 ++++ run-e2e.js | 4 ++++ 2 files changed, 8 insertions(+) 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"}); }