报错: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
相关推荐
小龙16 小时前
【Git 报错解决】 远程仓库 origin 已存在(`remote origin already exists`)
git·报错
小龙2 天前
【Git 报错解决】本地无有效提交无法推送(`src refspec main does not match any`)
git·github·报错
he___H5 天前
关于Amazon S3; Status Code: 403; Error Code: 403 Forbidden问题
java·报错·minio
BullSmall5 天前
自动化测试开发规范
selenium·测试工具·appium·自动化
BatyTao6 天前
Appium-Inspector下载安装全攻略
appium
阿蔹6 天前
UI测试自动化-Web-Python-Appium
前端·python·ui·appium·自动化
BatyTao12 天前
无线真机自动化测试全攻略-appium+phthon
appium
010不二16 天前
基于Appium爬虫文本导出可话个人动态(环境准备篇)
爬虫·python·appium
010不二16 天前
基于Appium爬虫文本导出可话个人动态
数据库·爬虫·python·appium
may_一一19 天前
appium安装(windows)
windows·appium