尝试在webstorm 8上调试量角器。遵循以下说明:How to debug angular protractor tests in WebStorm
当我点击调试图标时,我收到以下错误消息:
"C:\Program Files (x86)\JetBrains\WebStorm 8.0.4\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" --debug-brk=3803 --nolazy c:\protractor\node_modules\protractor-tester\node_modules\protractor\lib\cli.js protractor.conf.js
debugger listening on port 3803
c:\protractor\node_modules\protractor-tester\node_modules\protractor\lib\cli.js:138
throw new Error('You must specify either a seleniumAddress, ' +
^
Error: You must specify either a seleniumAddress, seleniumServerJar, or saucelabs account.
at run (c:\protractor\node_modules\protractor-tester\node_modules\protractor\lib\cli.js:138:11)
at Object.<anonymous> (c:\protractor\node_modules\protractor-tester\node_modules\protractor\lib\cli.js:265:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain [as _onTimeout] (module.js:497:10)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
Process finished with exit code 8
如何解决这个问题?
答案 0 :(得分:1)
您的protractor.conf.js应如下所示:
exports.config = {
seleniumAddress: "http://127.0.0.1:4444/wd/hub",
...
}