gpt4 book ai didi

node.js - IntelliJ 中 Protractor 调试失败

转载 作者:太空宇宙 更新时间:2023-11-04 00:40:00 25 4
gpt4 key购买 nike

我尝试设置 Intellij 来调试我的 Protractor 测试,但收到一个对我来说没有意义的错误。 (不是错误所说的内容,而是它为什么告诉我这一点。)

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

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

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.

我在 MacOS (El Capitan) 上使用 Intellij 2016。Node 已更新至 6.0.0。

最佳答案

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

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

关于node.js - IntelliJ 中 Protractor 调试失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37262345/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com