selenium和urllib3版本冲突解决

问题

使用selenium的时候控制台报错

python 复制代码
ValueError: Timeout value connect was <object object at 0x000002610094BEC0>, but it must be an int, float or None.

根因

根因是版本冲突

Name 冲突版本 合理版本
selenium 3.141.0 4.21.0
urllib3 2.0.3 2.2.1

解决

解决方法是把selenium和urllib3都升级到最新版本

shell 复制代码
pip install --upgrade selenium --trusted-host mirrors.aliyun.com
pip install --upgrade urllib3 --trusted-host mirrors.aliyun.com
相关推荐
逸雨清风17 小时前
Chrome更新到136以后selenium等自动化浏览器失效
selenium·自动化
小白学大数据18 小时前
Python+Selenium爬虫:豆瓣登录反反爬策略解析
分布式·爬虫·python·selenium
小冯的编程学习之路1 天前
【软件测试】:推荐一些接口与自动化测试学习练习网站(API测试与自动化学习全攻略)
c++·selenium·测试工具·jmeter·自动化·测试用例·postman
Ten peaches1 天前
Selenium-Java版(操作元素)
java·selenium·测试工具·html
傻小胖2 天前
三种常见接口测试工具(Apipost、Apifox、Postman)
测试工具·postman
辛普森Mmmm2 天前
Postman接口测试
测试工具·postman
程序员三藏2 天前
软件测试之功能测试详解
自动化测试·软件测试·python·功能测试·测试工具·职场和发展·测试用例
Looooking2 天前
Python 之 selenium 打开浏览器指定端口进行接续操作
python·selenium
头疼的程序员2 天前
allure生成测试报告(搭配Pytest、allure-pytest)
测试工具·pytest
程序员杰哥3 天前
自动化测试基础知识详解
自动化测试·软件测试·python·selenium·测试工具·职场和发展·测试用例