无法更新chromedriver和硒释放 [英] Can't update chromedriver and seleniumrelease

查看:579
本文介绍了无法更新chromedriver和硒释放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用量角器。所以我遵循一个小教程,我做了第一件事:

  npm install -g量角器

这将安装两个命令行工具,量角器和webdriver管理器。
但现在我必须更新我的webdriver管理器:

  webdriver管理器更新

所以我的cmd尝试连接到 https://chromedriver.storage.googleapis.com/2.14/chromedriver_win32.zip https://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar
但是会出现这个错误:

  C:\Program Files(x86)\Jenkins\workspace \testnew> webdriver-manager update 
更新selenium standalone
下载https://selenium-release.storage.googleapis.com/2.45/selenium-server
-standalone-2.45.0。 jar ...
更新chromedriver
下载https://chromedriver.storage.googleapis.com/2.14/chromedriver_win32。
zip ...
错误:收到错误:getaddrinfo EAI_AGAIN从https://selenium-release.stor
age.googleapis.com/2.45/selenium-server-standalone-2.45。 0.jar
错误:收到错误:getaddrinfo EAI_AGAIN从https://chromedriver.storage。
googleapis.com/2.14/chromedriver_win32.zip

有时候是EAI_AGAIN错误,有时符合。
但是我不明白的是,我可以在我的浏览器手动下载zip和jar。当我冲浪到URL,一切工作正常。但不是在cmd。有人可以帮助我吗?
PS:ping不可能到url的



更新:在代理设置后我得到这个错误:

 错误:收到错误:tunneling套接字无法建立,原因=套接字
挂断从https://chromedriver.storage.googleapis.com/2.14/ chromedriver_win32
.zip


解决方案

不工作,它怎么发生我,你可以从控制台中显示的urls手动下载文件,并将它们放入selenium文件夹



Windows中的路径是:



users\username\AppData\Roaming\\\
pm\\\
ode_modules\protractor\selenium

我希望能帮助


I try to work with protractor. So I followed a small tutorial and the first thing I did:

npm install -g protractor

This will install two command line tools, protractor and webdriver-manager. But now I have to update my webdriver-manager:

webdriver-manager update

So my cmd tries to connect with https://chromedriver.storage.googleapis.com/2.14/chromedriver_win32.zip and https://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar. But it will give this error:

C:\Program Files (x86)\Jenkins\workspace\testnew>webdriver-manager update
Updating selenium standalone
downloading https://selenium-release.storage.googleapis.com/2.45/selenium-server
-standalone-2.45.0.jar...
Updating chromedriver
downloading https://chromedriver.storage.googleapis.com/2.14/chromedriver_win32.
zip...
Error: Got error Error: getaddrinfo EAI_AGAIN from https://selenium-release.stor
age.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar
Error: Got error Error: getaddrinfo EAI_AGAIN from https://chromedriver.storage.
googleapis.com/2.14/chromedriver_win32.zip

Sometimes it is the EAI_AGAIN error and sometimes ENOTFOUND. But what I don't understand is that I can download the zip and the jar manually in my browser. When I surf to the URL it all works fine. But not in the cmd. Can someone help me? PS: pinging isn't possible to the url's

Update: after proxy settings I get this error:

Error: Got error Error: tunneling socket could not be established, cause=socket
hang up from https://chromedriver.storage.googleapis.com/2.14/chromedriver_win32
.zip

解决方案

If setting your proxy does not work, how it happened to me, you can download the files manually from the urls show in the console, and put them into the selenium folder

The path in Windows is:

users\username\AppData\Roaming\npm\node_modules\protractor\selenium

That works for me.

I hope that helps

这篇关于无法更新chromedriver和硒释放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆