diff --git a/tasks/protractor_runner.js b/tasks/protractor_runner.js index c7ee1d1..16824ba 100644 --- a/tasks/protractor_runner.js +++ b/tasks/protractor_runner.js @@ -34,7 +34,8 @@ module.exports = function(grunt) { args: {}, output: false, outputOptions: {}, - webdriverManagerUpdate: false + webdriverManagerUpdate: false, + webdriverManagerUpdateArgs: [] }); // configFile is a special property which need not to be in options{} object. @@ -182,7 +183,7 @@ module.exports = function(grunt) { grunt.log.writeln('webdriver-manager path: ' + webdriverManagerPath); grunt.util.spawn({ cmd: opts.nodeBin, - args: [webdriverManagerPath, 'update'], + args: [webdriverManagerPath, 'update'].concat(opts.webdriverManagerUpdateArgs), opts: { stdio: 'inherit' }