【发布时间】:2015-07-14 12:43:43
【问题描述】:
我正在使用量角器编写测试。如果我将以下代码放入我的测试中,我就可以进入调试器:
browser.pause();
但是,我无法退出调试器并恢复测试执行。 根据this documentation:
完成调试后,按 Ctrl-C 退出。您的测试将使用相同的浏览器从中断处继续。
实际上,即使调试器本身在暂停时也会告诉我同样的信息:
------- WebDriver Debugger -------
ready
press c to continue to the next webdriver command
press d to continue to the next debugger statement
type "repl" to enter interactive mode
type "exit" to break out of interactive mode
press ^C to exit
听起来不错,但是当我尝试 Ctrl-C 时,它会中断整个测试。我做错了什么?
我正在 Windows 7 上使用 grunt-protractor-runner@1.2.1 运行量角器测试。
【问题讨论】:
标签: debugging gruntjs protractor