-
保存信息: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
相关推荐
程序员小远3 天前
自动化测试基础知识总结LT10157974443 天前
2026年Web自动化测试工具选型指南:多浏览器兼容解决方案程序员三藏3 天前
Web自动化测试详解深蓝电商API3 天前
Selenium 5.0 全新架构解析:值得升级吗?专业机床数据采集4 天前
基于 Wireshark 抓包逆向设备通信协议,并用 C# UDP协议跨平台 实现宝元数控程序列表读取、上传、下载和删除程序员龙叔4 天前
从 0 开始学习 AI 测试 - 从接口测试来教你如何用 AI 来生成自动化测试代码Saniffer_SH4 天前
【高清视频】Gen6 服务器还没到,Gen6 SSD 怎么测?Emily 现场演示三种测试环境川石课堂软件测试4 天前
APP自动化测试|高级手势操作&toast操作LT10157974444 天前
2026年开源自动化测试工具选型指南:功能与适用场景解析