我安装了npm install protractor -g,然后尝试更新 使用命令“webdriver-manager update”的webdriver-manager会发生: enter image description here
如果我尝试使用“webdriver-manager start”命令启动webdriver-manager,则说“Selenium Standalone不存在。使用webdriver-manager更新安装--standalone” 这是设置教程:http://www.protractortest.org/#/tutorial
我不知道该怎么办,你能帮助我吗?
答案 0 :(得分:0)
WebDriver Manager在update
上下载基本驱动程序。不确定您是从docker容器,vagrant VM还是在VPN内部运行它。
从以下来源下载,屏幕截图中的ipaddress表示您遇到连接https://github.com/mozilla
的问题。在ping github上,我看到了相同的IP。
来源:来自webdriver-manager configs
"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操作,看看您是否能够从执行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