当前位置:首页 > 日记本 > 正文内容

selenium间歇性报错:Exception managing chrome: error sending request for url

zhangchap6个月前 (11-13)日记本206

最近更新了一不小心更新了selenium4.15.2,导致每次运行它都会主动去国外官网请求一遍,因为访问不了国外网址,就加载特别慢

最后报错 Exception managing chrome: error sending request for url (https://chromedriver.storage.googleapis.com/index.html),然后再运行,一开始以为是webdriver版本和chrome版本不对,网上也没有搜到相关问题,找了好久都没解决。最后卸载最新版,替换清华镜像4.5.0才解决了
解决

# 卸载selenium
pip uninstall selenium

# 安装清华镜像 selenium
pip install selenium==4.5.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/

原文链接:https://blog.csdn.net/weixin_42277380/article/details/134326299

分享给朋友:

相关文章

宝塔重启服务器后,Redis就启动不了解决方案

宝塔重启服务器后,Redis就启动不了解决方案

1.更改权限 chown -R redis.redis /www/server/redis/ 2.设置持久化...

python xpath语法总结

python xpath语法总结:常用的://1.从任意节点开始/2.从根节点开始//div/p3.div下的p标签//div[@class="hrzz_bottom"]/ul/l...

python url.parse模块编码解码

from urllib.parse import quote,unquote,urlencode # 对汉字进行编码使用 quote ...

减重五原则

1.主粮减半,少吃米面粥粉等;2.完全戒糖,包括可乐、奶茶等3.轻断食,每周一次,一日餐4.不限制任何动物脂肪和肉类,少吃植物油;5.保证随时喝到水,脂肪的消耗需要大量的水。...

python下elasticsearch搜索接口介绍

# elasticsearch 默认算法bm25 from elasticsearch import Elasticsearch import&n...

python下random随机选择的三种方式

from random import sample,choice,choices list_1 = [1,2,3,4,5,6] # 从列...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。