-
保存信息: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
相关推荐
LT10157974444 小时前
2026年云测试平台选型指南:技术能力与场景匹配全解析IT199517 小时前
Wireshark笔记-对AI连接标准MCP抓包分析LT101579744418 小时前
2026 年自动化测试工具对比:架构与场景深度评测momo1 天前
POSTMAN实名上网宋凯宣1 天前
postman怎么用?Warren981 天前
Windows本地部署n8n完整教程(基于Docker,新手友好)Lugas Luo1 天前
车载录像存储性能模拟测试工具设计llilian_161 天前
国产铷原子钟 铷频标挑选指南 铷原子频标 国产铷钟kerryYG1 天前
Charles抓取mumu模拟器应用接口(非adb方式)551只玄猫1 天前
【计算机网络 实验报告1】Wireshark软件的使用