-
保存信息: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
相关推荐
cat2bug1 小时前
介绍一下如何在Cat2Bug-Platform中通过OpenAI来创建测试用例Wpa.wk7 小时前
Docker容器 - 了解Docker基础命令(容器+镜像命令)测试199810 小时前
2026最新软件测试面试八股文(含答案+文档)zzZ··*10 小时前
自动登录上海大学校园西安同步高经理10 小时前
日差检定测试仪的功能作用与使用方法详解、日差测试仪、日差测量深蓝电商API11 小时前
Selenium处理iframe嵌套页面实战MESMarketing12 小时前
互动分享 | ISO 26262安全分析概览卓码软件测评1 天前
第三方软件测试测评机构【使用web_reg_save_param_ex函数:掌握LoadRunner关联的黄金法则 】大飞记Python1 天前
代码级教程|用Playwright实现Web自动化测试:从零到录制生成脚本