报错AttributeError: ‘NoneType‘ object has no attribute ‘to_capabilities‘

问题

运行appium自动化测试代码报错

AttributeError: ‘NoneType‘ object has no attribute ‘to_capabilities‘

原因

这是为Appium-Python-Client3.0和Selenium版本不兼容。不建议使用最新版本!

解决

将Appium-Python-Client最新版本改为旧版2.11

posted @ 2024-11-28 22:45  mafei666  阅读(184)  评论(0)    收藏  举报