node.js - 离线运行 web-component-tester

标签 node.js selenium polymer-2.x web-component-tester

我使用 npm install -g web-component-tester 安装了 web-component-server。之后,我在一个仅用 chrome 编写的简单测试中运行了 wct。随后,我搬到了一个不可能随时连接互联网的环境。由于我已经运行过一次 wct,我希望它能再次运行。但重新运行命令 wct --verbose -l chrome 出现以下错误:

Error: Could not request headers from https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-win64.zip
: Error: getaddrinfo EAI_AGAIN github.com:443

它似乎想要 Mozilla selenium 驱动程序,我什至没有指定在我的命令中运行!怎么解决呢?

最佳答案

您可以跳过安装检查(仅适用于在线) wct --skip-selenium-install

关于node.js - 离线运行 web-component-tester,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45455115/

相关文章:

node.js - "Learning Node JS"示例 - 'The super constructor to "继承 "must not ' +'

java - 错误 : simctl error running 'create' : Invalid device type: on appium and real ios device

javascript - Vis.js 时间轴出现 polymer 错误 : Something is wrong with the Timeline scale

polymer - 无法理解 Polymer 2.0 自定义元素属性?

javascript - 聚合物2.0 : where should I place business logic?

node.js - 将 Angular 更新到版本 8 后出现错误

node.js - Angular 通用部署

node.js - 为什么我们使用 'app'变量来调用express函数

java - 使用Java拦截元素点击

java - 如何使用可搜索的部分字符串来识别动态元素