-
保存信息: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
相关推荐
测试199810 小时前
接口自动化测试套件封装示例详解我的xiaodoujiao15 小时前
使用 Python 语言 从 0 到 1 搭建完整 Web UI自动化测试学习系列 31--开源电商商城系统项目实战--加入购物车、提交订单测试场景测试人社区—527216 小时前
你的单元测试真的“单元”吗?测试人社区—527220 小时前
破茧成蝶:DevOps流水线测试环节的效能跃迁之路白露与泡影21 小时前
从 JDK 8 到 JDK 18,Java 垃圾回收的十次进化我的xiaodoujiao21 小时前
使用 Python 语言 从 0 到 1 搭建完整 Web UI自动化测试学习系列 30--开源电商商城系统项目实战--配置测试环境地址测试秃头怪1 天前
2026最新软件测试面试八股文(含答案+文档)测试老哥1 天前
Postman接口测试基本操作月亮!2 天前
移动端测试重磅升级:跨平台自动化测试框架深度对比Jul1en_2 天前
【自动化测试】介绍Web自动化测试及Selenium安装