报错: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
相关推荐
2601_967987372 天前
Python在自动化测试中有哪些应用?
python自动化测试·selenium·appium·pytest·性能测试
@zulnger6 天前
安卓进行稳定性测试
android·appium·1024程序员节
2601_962298272 个月前
Python自动化脚本的编写01
python·appium·自动化脚本·web自动化·应收账款管理
2601_962078192 个月前
Appium+Python+pytest自动化测试框架详解
自动化测试·python·appium·pytest·移动应用
2601_962293532 个月前
Appium+python自动化(十二)- Android UIAutomator终极定位凶器(超详解)
android·自动化测试·appium·定位·uiautomator
weixin-a153003083162 个月前
7.Appium-ios端自动化
ios·appium·自动化
2601_962295992 个月前
Python+Appium 自动化测试:从基础语法到 PO 模式设计,构建稳定测试框架
自动化测试·python·appium·测试框架·po模式
测试19982 个月前
如何用appium搭建Android自动化测试框架?
自动化测试·软件测试·python·测试工具·职场和发展·appium·测试用例
St_rive2 个月前
Appium元素定位与常用方法
appium
爱知菜2 个月前
Appium3.7 连 安卓平台架构图 和 注意事项
appium