2

我安装了 npm install protractor -g 并尝试使用命令“webdriver-manager update”更新 webdriver-manager,它发生了: 在此处输入图像描述

如果我尝试使用命令“webdriver-manager start”启动 webdriver-manager,它会显示“Selenium Standalone 不存在。使用 webdriver-manager update --standalone 安装”这是安装教程:http://www .protractortest.org/#/tutorial

我不知道该怎么办,你能帮帮我吗?

4

1 回答 1

0

WebDriver Manager 下载必要的驱动程序update。不确定你是从 docker 容器、vagrant VM 还是在 VPN 中运行它。

它从以下来源下载,屏幕截图中的 ipaddress 表明您在连接到https://github.com/mozilla. 在 ping github 时,我看到相同的 IP。

来源:来自webdriver-manager 配置

  "cdnUrls": {
    "selenium": "https://selenium-release.storage.googleapis.com/",
    "chromedriver": "https://chromedriver.storage.googleapis.com/",
    "geckodriver": "https://github.com/mozilla/geckodriver/releases/download/",
    "iedriver": "https://selenium-release.storage.googleapis.com/",
    "androidsdk": "http://dl.google.com/android/"
  }

您能否按如下所示 ping 并查看您是否能够从您正在执行的位置手动访问上述来源(Chrome 和 seleniumServer 和 Gecko)webdriver-manager update

C:\Users\<<>>\WebstormProjects\demo>ping github.com

Pinging github.com [192.30.253.112] with 32 bytes of data:
Reply from 192.30.253.112: bytes=32 time=207ms TTL=47
Reply from 192.30.253.112: bytes=32 time=205ms TTL=47
Reply from 192.30.253.112: bytes=32 time=205ms TTL=47
Reply from 192.30.253.112: bytes=32 time=205ms TTL=47

Ping statistics for 192.30.253.112:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 205ms, Maximum = 207ms, Average = 205ms
于 2017-02-21T16:16:44.360 回答