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

报错如下

sh 复制代码
Traceback (most recent call last):
  File "C:\Users\wlb\Desktop\test\python\2.py", line 16, in <module>
    driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", caps)
  File "D:\software\python3\lib\site-packages\appium\webdriver\webdriver.py", line 229, in __init__
    super().__init__(
  File "D:\software\python3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 185, in __init__
    capabilities = options.to_capabilities()
AttributeError: 'NoneType' object has no attribute 'to_capabilities'

可能是版本太高导致

回退版本

sh 复制代码
pip install appium-python-client==2.0
相关推荐
m0_564264189 小时前
springboot项目之websocket的坑:spring整合websocket后进行单元测试后报错的解决方案
java·经验分享·spring boot·websocket·spring·单元测试·报错
工头阿乐3 天前
Appium自动化开发环境搭建
运维·appium·自动化
ronindong7 天前
Android自动化功能-使用Appium获取android页面节点元素信息
android·appium·自动化
一只小H呀の9 天前
移动自动化测试-appium
appium
w1351106915012 天前
一、Appium环境安装
appium
测试199820 天前
Appium如何实现移动端UI自动化测试?
自动化测试·软件测试·python·测试工具·职场和发展·appium·测试用例
一直开心21 天前
Appium的学习总结-Inspector参数设置和界面使用(5)
appium·inspector
程序员的世界你不懂24 天前
从定义、原理、环境搭建、安装问题排查等深入了解Appium
经验分享·百度·appium
niuniu_6661 个月前
安全性测试(Security Testing)
测试工具·单元测试·appium·测试·安全性测试
niuniu_6661 个月前
appium应用测试场景
功能测试·selenium·测试工具·appium·测试