-
保存信息:There was an error managing chromedriver (error sending request for url (https://storage.googleapis.com/chrome-for-testing-public/124.0.6367.91/win64/chromedriver-win64.zip)); using driver found in the cache
-
报错原因 :因为selenium4.20.0有自带的浏览器驱动管理 。当它去下载这个google浏览器驱动时出现了url请求错误。
-
解决方法 :我们直接使用报错的地址 自己去下载这个驱动 ,然后自己再将这个驱动存放地址配置到代码中去就不会报错了。
pythonfrom selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.by import By driver = webdriver.Chrome(service=Service(executable_path=r"E:\chromedriver-win64\chromedriver.exe")) driver.get("https://www.baidu.com") element = driver.find_element(By.ID, "kw") element.send_keys("百度搜索")
-
问题严重程度:其实这个没有什么影响google浏览器还是能照常运行。应为它使用在缓存中找到的驱动对google浏览器进行了操作(using driver found in the cache)。
自己的拙见,有不足地方欢迎大家帮忙指出问题
selenium 4.20.0 访问外网问题
Leisure -_-2024-05-06 14:40
相关推荐
一个天蝎座 白勺 程序猿12 小时前
Python爬虫(29)Python爬虫高阶:动态页面处理与云原生部署全链路实践(Selenium、Scrapy、K8s)代码的乐趣14 小时前
支持selenium的chrome driver更新到136.0.7103.94深浅卡布星1 天前
Postman启动时检测到版本不匹配错误九章云极AladdinEdu1 天前
GPU与NPU异构计算任务划分算法研究:基于强化学习的Transformer负载均衡实践程序员小远1 天前
UI自动化测试方案详解JZMSYYQ2 天前
磁光克尔效应在量子计算中的应用逸雨清风2 天前
Chrome更新到136以后selenium等自动化浏览器失效小白学大数据2 天前
Python+Selenium爬虫:豆瓣登录反反爬策略解析小冯的编程学习之路3 天前
【软件测试】:推荐一些接口与自动化测试学习练习网站(API测试与自动化学习全攻略)Ten peaches3 天前
Selenium-Java版(操作元素)