IntelliJ中的量角器调试失败

时间:2016-05-16 20:04:33

标签: node.js intellij-idea protractor

我试图设置Intellij来调试我的量角器测试,但是我收到的错误对我来说没有意义。 (不是错误在说什么,而是为什么告诉我这个。)

首先,我按照此处的说明操作:How to debug angular protractor tests in WebStorm 包括确保我将--harmony添加到节点参数行。

然后我尝试运行该脚本并收到以下错误消息:

Error: No selenium server jar found at the specified location (/Users/x/Projects/v/node_modules/protractor/selenium/selenium-server-standalone-2.52.0.jar). Check that the version number is up to date.

然后我执行

$ webdriver-manager update
selenium standalone is up to date.
chromedriver is up to date.

我在使用Intellij 2016的MacOS(El Capitan)上。节点已更新为6.0.0。

1 个答案:

答案 0 :(得分:1)

您需要使用特定于项目的webdriver-manager二进制文件:

$ cd /Users/x/Projects/v
$ node_modules/protractor/bin/webdriver-manager update