我安装了npm install protractor -g,然后尝试更新
使用命令“ webdriver-manager更新”的webdriver-manager,它发生:
enter image description here
如果我尝试使用“ webdriver-manager start”命令启动webdriver-manager,它会显示“ Selenium Standalone不存在。请使用webdriver-manager update --standalone安装”
此处是安装教程:http://www.protractortest.org/#/tutorial
我不知道该怎么办,您能帮我吗?
最佳答案
WebDriver Manager在update
上下载基本驱动程序。不确定您是从Docker容器,无所事事的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
的位置手动访问上述资源(Chrome&seleniumServer&Gecko)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