解决:python+appium报错ValueError: Timeout value connect was <...>, but it must be an int, float or None.

在使用python+appium自动化测试pycharm一直报错,已找到解决方案,感谢网友的分享,方案在本文底部

代码和报错如下:

解决:python+appium报错ValueError: Timeout value connect was <...>, but it must be an int, float or None._第1张图片

解决:python+appium报错ValueError: Timeout value connect was <...>, but it must be an int, float or None._第2张图片

解决:python+appium报错ValueError: Timeout value connect was <...>, but it must be an int, float or None._第3张图片

解决:python+appium报错ValueError: Timeout value connect was <...>, but it must be an int, float or None._第4张图片

Appium无反应或者是报如下错误

解决:python+appium报错ValueError: Timeout value connect was <...>, but it must be an int, float or None._第5张图片

解决:python+appium报错ValueError: Timeout value connect was <...>, but it must be an int, float or None._第6张图片

一些其他网友的解答在本链接:求指点使用appium做自动化测试连接模拟器时pycharm报错ValueError: Timeout value connect was <......>, but it must be an int, float or None._博问_博客园

最直接的解决方案就是selenium版本降级:

pip install --force-reinstall -v "selenium==4.8.0"

参考:
python - Running an keyword on Robotframework throw an error: ValueError: Timeout value connect was - Stack Overflow

ValueError: Timeout value connect was , but it must be an int, float or None. · Issue #863 · appium/python-client

你可能感兴趣的:(python,appium,pycharm)