在使用python+appium自动化测试pycharm一直报错,已找到解决方案,感谢网友的分享,方案在本文底部
代码和报错如下:
Appium无反应或者是报如下错误
一些其他网友的解答在本链接:求指点使用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 <object object at 0x106cc5b50> - Stack Overflow文章来源:https://www.toymoban.com/news/detail-506085.html
ValueError: Timeout value connect was <object object at 0x7f7515f84420>, but it must be an int, float or None. · Issue #863 · appium/python-client文章来源地址https://www.toymoban.com/news/detail-506085.html
到了这里,关于解决:python+appium报错ValueError: Timeout value connect was <...>, but it must be an int, float or None.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!