-
保存信息: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
相关推荐
带土112 小时前
5. 网络体系架构与WireShark简单使用kiss strong13 小时前
自制请求工具request-ui蒲公英内测分发16 小时前
在灵感与输出之间挣扎:我与 Typeoff 的交集川石课堂软件测试17 小时前
UI自动化测试|元素操作&浏览器操作实践Luminbox紫创测控19 小时前
AM1.5G光谱在LED太阳模拟器中的工程实现:光谱匹配与均匀性优化(A+级指标)i love you china20 小时前
接口测试工具postman的使用方法LT101579744420 小时前
2026年接口自动化测试平台选型指南:微服务高效测试工具测试员周周1 天前
【AI测试智能体-面试】AI测试面试60题(附回答思路)weixin_307779132 天前
智能模拟数据生成平台:生成式AI合成数据技术重塑开发测试效能Lust Dusk2 天前
postman工具介绍(附下载教程)