Python appium client 3.x fix #370
                
     Merged
            
            
          
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
PR Type
This PR enables one to use Appium with python-appium-client = 3.0 and Selenium >= 4.10.0
Bug Fix
PR Checklist
Overview
When tried to run Appium actions got the following errors,
Error 1
WebDriver.__init__() got an unexpected keyword argument ‘desired_capabilities’From Selenium version 4.10.0 and python-appium-client 3.10 desired_capabilites option has been deprecated. So we cannot provide a dictionary with all the desired capabilities like before. Instead, we have to provide a UiAutomator2Options option object that is created from the desired capabilities dictionary.
Previous
appium_driver = webdriver.Remote("http://localhost:%d" % appium_port, desired_caps)Current
capabilities_options = UiAutomator2Options().load_capabilities(desired_caps)appium_driver = webdriver.Remote("http://localhost:%d" % appium_port, capabilities_options)Error 2
AttributeError: 'WebDriver' object has no attribute 'launch_app'Currently, appium remote driver does not have any 'launch_app' attribute. So had to replace 'launch_app' with 'activate_app'.
Previous
appium_driver.launch_app()Current
appium_driver.activate_app(package_name)Test Cases