使用selenium webdriver启动nodejs服务器时出现以下错误
ubuntu@ip-10-10-10-193:~/testenvoy$ node app.js
/home/ubuntu/testenvoy/node_modules/selenium-webdriver/index.js:115
static createSession(...args) {}
^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ubuntu/testenvoy/controllers/test/all.js:2:17)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
r?Run Code Online (Sandbox Code Playgroud)
我该如何解决这个错误?
将nodejs版本降级到Node v6.9.0之后,我收到了以下错误
/home/ubuntu/www.testenvoy.com/webdriver/node_modules/selenium-webdriver/lib/promise.js:2517
throw error;
^
WebDriverError: Firefox option was set, but is not a FirefoxOption: {}
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700'
System info: host: 'WIN-MT0KFAH3HJN', ip: '10.10.10.10', …Run Code Online (Sandbox Code Playgroud)