硒webdriver管理器更新-npm [英] selenium webdriver manager update - npm
本文介绍了硒webdriver管理器更新-npm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试使用"webdriver-manager"更新Selenium Webdriver,但出现错误,
I tried to update the selenium webdriver using the "webdriver-manager", but i get the error as,
Error: Got error Error: read ECONNRESET from https://selenium-release.storage.googleapis.com/2.48/selenium-server-standalone-2.48.2.jar
Error: Got error Error: read ECONNRESET from https://selenium-release.storage.googleapis.com/2.48/selenium-server-standalone-2.48.2.jar
fs.js:60
throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
^
Error: EPERM: operation not permitted, unlink 'C:\Users\user_name\AppData\Roaming\npm\node_modules\protractor\selenium\selenium-server-standalone-2.48.2.jar'
at Error (native)
我不确定是什么原因.我也尝试过更新量角器,但是没有运气.
I am not sure what was the cause. I tried updating the protractor too, but no luck.
我还尝试以管理员身份运行命令提示符并运行
Also i tried running the command prompt as administrator and run
webdriver-manager update --ignore_ssl
请帮助.
推荐答案
我已经解决了以下问题,
I have solved the issue as below,
// Update chrome alone
webdriver-manager update --standalone=0 --chrome --alternate_cdn http://chromedriver.storage.googleapis.com/
// Update selenium alone
webdriver-manager update --chrome=0 --standalone --alternate_cdn http://selenium-release.storage.googleapis.com/
这篇关于硒webdriver管理器更新-npm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文