python-client icon indicating copy to clipboard operation
python-client copied to clipboard

Not clear what I should be using instead of 'desired_capabilities'

Open chrisgraham24 opened this issue 2 years ago • 3 comments

The problem

Using APC==3.0.0 and Selenium==4.13.0 (and Python 3.9.6) I am getting: TypeError: __init__() got an unexpected keyword argument 'desired_capabilities' I have seen a lot of these tickets get closed, but I still am not clear on what exactly I should be using instead of desired caps for my iOS and Android Appium tests using these versions. Please do not just close this and link an already closed ticket. I want to know what I should be using instead...thank you!

Environment

  • Appium version (or git revision) that exhibits the issue: 3.0.0
  • Mobile platform/version under test: iOS and Android
  • Real device or emulator/simulator: Real
  • Appium CLI or Appium.app|exe: CLI

chrisgraham24 avatar Sep 26 '23 20:09 chrisgraham24

You should be using driver-specific or generic options. Check https://github.com/appium/python-client#usage

mykola-mokhnach avatar Sep 26 '23 20:09 mykola-mokhnach

Is there a list of driver-specific options? Do they translate from Desired Capabilities. Just seems such a massive change should be better documented...

chrisgraham24 avatar Sep 27 '23 12:09 chrisgraham24

Unfortunately, the documentation has never been a strong side of this project, especially the part that targets beginners. You could always help yourself and others by improving it.

Look at https://github.com/appium/python-client/tree/master/appium/options if you want to find specific option implementations

mykola-mokhnach avatar Sep 27 '23 12:09 mykola-mokhnach