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

报错如下

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'

可能是版本太高导致
回退版本

pip install appium-python-client==2.0

你可能感兴趣的:(报错,appium,报错)