我之前看到这个错误出现并消失,但似乎无法隔离它。使用Angular 2 Go量角器中的Protractor configuration,如果我插入browser.pause()
,它会在wd-debug
提示符后显示为额外的行,并且它不会响应命令
这是输出:
[1] [16:15:07] I/direct - Using ChromeDriver directly...
[1] [16:15:07] I/launcher - Running 1 instances of WebDriver
[1] Started
[1]
[1] [16:15:09] I/protractor -
[1] [16:15:09] I/protractor - Encountered browser.pause(). Attaching debugger...
[1] [16:15:09] I/protractor -
[1] [16:15:09] I/protractor - ------- WebDriver Debugger -------
[1] [16:15:09] I/protractor - Starting WebDriver debugger in a child process. Pause is still beta, please report issues at github.com/angular/protractor
[1] [16:15:09] I/protractor -
[1] [16:15:09] I/protractor - press c to continue to the next webdriver command
[1] [16:15:09] I/protractor - press ^D to detach debugger and resume code execution
[1] [16:15:09] I/protractor - type "repl" to enter interactive mode
[1] [16:15:09] I/protractor - type "exit" to break out of interactive mode
[1] [16:15:09] I/protractor -
[1] Starting debugger agent.
[1] Debugger listening on port 5858
[1] ControlFlow::486
[1] | TaskQueue::182
[1] | | (pending) Task::184<then>
[1] | | | TaskQueue::459
[1] | | | | (pending) Task::461<Run it("foo") in control flow>
[1] | | | | | TaskQueue::464
[1] | | | | | | (blocked) Task::470<<anonymous>>
[1] | | | | Task::463<then>
[1] wd-debug>
(blank line here)
它甚至只是一个空的测试:
describe('Foo Component', () => {
beforeEach(function () {
browser.get('');
});
it('foo', () => {
browser.pause();
});
});
我第一次遇到这个时,我以为我通过复制Angular 2 Go Protractor配置修复了它,当我恢复到原来的配置时,我可以发誓问题再次出现,当我放回原来的配置时它就消失了Angular 2 Go Protractor配置。但现在问题再次出现,我已经验证它现在正在使用该配置。
有没有人见过这个?