From f65be9ba7741ced264c2c39f67e56ebff48d236d Mon Sep 17 00:00:00 2001 From: Chris Best Date: Wed, 9 Apr 2014 19:14:07 -0400 Subject: [PATCH] Allow extra args --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 || []) }); };