-
保存信息: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
相关推荐
LT10157974445 小时前
2026年低代码自动化测试平台选型指南:降低测试落地门槛llilian_166 小时前
晶振测量仪 晶振频率测试仪器的多领域应用解析 晶振频率测试仪器西安同步高经理20 小时前
B码发生器破解变电站故障录波的时间困局、b码同步时钟、b码授时大貔貅喝啤酒1 天前
接口测试_Postman(详细版)Air_July1 天前
Brower User Web UI部署详细步骤测试19981 天前
接口测试工具:Postman的高级用法汽车仪器仪表相关领域1 天前
Kvaser Memorator Professional HS/LS:高速 + 低速双通道 CAN 总线记录仪,跨系统诊断的专业级解决方案程序员小远1 天前
如何编写测试用例?PhotonixBay2 天前
激光共聚焦显微镜的非接触式原位表面表征测量