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
相关推荐
软件测试-阿涛9 小时前
【性能测试】Jmeter+Grafana+InfluxDB+Prometheus Windows安装部署教程
测试工具·jmeter·性能优化·压力测试·grafana·prometheus
小马哥编程11 小时前
如何解决 undetected_chromedriver 启动慢问题
chrome·selenium·ui
惜.己1 天前
pytest中使用skip跳过某个函数
开发语言·python·测试工具·pytest
慧都小项1 天前
自动化UI测试工具TestComplete的AI双引擎:即时数据集 + 自愈测试
自动化测试·测试工具·llm·数据驱动测试·hipaa标准
alien爱吃蛋挞1 天前
Postman
测试工具·postman
程序员小远2 天前
Pytest+Selenium UI自动化测试实战实例
自动化测试·软件测试·python·selenium·测试工具·ui·pytest
Feng.Lee3 天前
接口测试Postman工具高级使用技巧
功能测试·测试工具·lua·postman·可用性测试
bestsun9993 天前
Notepad++工具操作技巧
测试工具·notepad++