diff --git a/index.js b/index.js index 085fede..747b297 100644 --- a/index.js +++ b/index.js @@ -40,7 +40,7 @@ function startPhantomWebdriver(options) { return startServerAndPing({ timeout: options.timeout || 15000, url: 'http://localhost:' + port + '/status', - cmdline: [options.execPath || 'phantomjs', '--webdriver=' + port] + cmdline: [options.execPath || 'phantomjs', '--webdriver=' + port].concat(options.extraArgs || []) }); };