【发布时间】:2018-10-08 11:03:18
【问题描述】:
我开始使用eclipse使用量角器,配置了所有东西,nodejs,量角器,webdriver,但是在调试时或者如果我想运行测试,它总是返回这个Unexpected token
配置文件:
exports.config = {
// The address of a running selenium server.
seleniumAddress: 'http://localhost:4444/wd/hub',
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'chrome'
},
// Spec patterns are relative to the configuration file location passed
// to protractor (in this example conf.js).
// They may include glob patterns.
specs: ['example-spec.js'],
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true, // Use colors in the command line report.
}
};
错误:
C:\Users\tgv\workspace\test7\node_modules\protractor\built\logger.js:75
info(...msgs) {
^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (C:\Users\tgv\workspace\test7\node_modules\protractor\built\configParser.js:5:18)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
【问题讨论】:
标签: protractor