报错: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
相关推荐
秋窗73 天前
Homebrew执行brew install出现错误(homebrew-bottles)
报错·homebrew
aiden:)4 天前
App UI 自动化环境搭建指南
运维·python·ui·appium·自动化
Steven_yang_17 天前
关于ANDROUD APPIUM安装细则
appium
币圈小菜鸟11 天前
Windows 环境下搭建移动端自动化测试环境(JDK + SDK + Node.js + Appium)
java·windows·python·测试工具·node.js·appium
nece00113 天前
使用appium对安卓(使用夜神模拟器)运行自动化测试
自动化测试·appium·安卓自动化测试
Warren9815 天前
Appium学习笔记
android·windows·spring boot·笔记·后端·学习·appium
Java方文山1 个月前
Appium+Python 实现移动应用自动化测试:从基础到实战
appium
有风南来1 个月前
appium2.0+之PointerActions详解
自动化测试·appium·高级手势·pointeractions·移动设备自动化·单点触控
惜.己1 个月前
appium中urllib3.exceptions.LocationValueError: No host specified. 的错误解决办法
网络·appium
惜.己1 个月前
python中appium
开发语言·python·appium