我在AngularJS / Rails项目中使用量角器并在我开始时
webdriver-manager start
rails s -e test --port=4000 -P tmp/pids/protractor_test_server.pid
protractor debug --specs spec/javascripts/protractor_specs/users/create_user_spec.js.coffee spec/javascripts/protractor.conf.js
我收到以下错误:
_spec.js.coffee spec/javascripts/protractor.conf.js
util.puts: Use console.log instead
Using the selenium server at http://localhost:4444/wd/hub
Starting debugger agent.
Debugger listening on port 5858
< Debugger listening on port 5858
connecting to port 5858... ok
break in timers.js:94
< module.js:338
< throw err;
< ^
< Error: Cannot find module '/home/map7/myproject/localhost:5858'
< at Function.Module._resolveFilename (module.js:336:15)
< at Function.Module._load (module.js:278:25)
< at Module.runMain [as _onTimeout] (module.js:501:10)
< at Timer.listOnTimeout (timers.js:133:15)
< Failed to open socket on port 5858, waiting 1000 ms before retrying
92 }
93
>94 function listOnTimeout() {
95 var msecs = this.msecs;
96 var list = this;
debug>
(^C again to quit)
debug>
Error 0
如果我在没有调试的情况下运行量角器,那么它运行我的测试很好,但我没有调试器。我目前遇到需要使用调试器的问题。
注意:我尝试过量角器1.4.0&amp; 2.1.0