首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >无法执行量角器,出现“找不到update-config.json”错误消息

无法执行量角器,出现“找不到update-config.json”错误消息
EN

Stack Overflow用户
提问于 2017-05-29 22:43:41
回答 3查看 24.5K关注 0票数 21

当我尝试执行我的<configuration>.js文件时,我得到以下错误:

代码语言:javascript
复制
[14:49:13] I/launcher - Running 1 instances of WebDriver
[14:49:13] I/direct - Using ChromeDriver directly...
[14:49:13] E/direct - Error code: 135
[14:49:13] E/direct - Error message: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.
[14:49:13] E/direct - Error: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.

我运行命令webdriver-manager update并尝试执行该文件,但同样的错误仍然存在。有没有人能帮我克服同样的问题?

EN

回答 3

Stack Overflow用户

发布于 2019-07-23 01:36:50

使用node node_modules/protractor/bin/webdriver-manager update对我很有效。

票数 48
EN

Stack Overflow用户

发布于 2017-05-30 15:56:45

directConnect不使用全局安装的版本,而是使用node_modules/protractor/node_modules/webdriver-manager/中的Protractor提供的版本。您将需要更新该版本。

如果您安装了全局版本,命令webdriver-manager update将更新全局安装的webdriver-manager。如果您安装了全局版本,请将其删除,或者不使用directConnect并使用seleniumAddress: 'http://localhost:4444/wd/hub/'调整您的量角器配置

希望能有所帮助

票数 16
EN

Stack Overflow用户

发布于 2018-06-23 02:59:53

在我升级到angular-cli v6.0.8之后,我在VSCode中遇到了这个错误。尝试将protractor.conf文件更改为使用directConnect: false并添加seleniumAddress对我不起作用。

但是,我只需停止任何正在运行的服务器(或精简服务器实例),重新启动VSCode,然后重新启动服务器,就可以解决这个问题。我现在可以运行带有@angular/cli 6.0.8的量角器5.3.0,同时仍然使用directConnect: true。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44245185

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档