Error:
HOOK-ERROR in before_scenario: TypeError: WebDriver.__init__() got an unexpected keyword argument 'desired_capabilities'
Hello, we currently cannot run our script together with the latest Selenium 4.10. Is this Appium error or Python error?
Here is the capabilities that we used. We're currently trying to get the capabilities for platformName by targetOS = self.driver.capabilities['platformName']
but we're hit with this error
capabilities = {
"platformName": "Android",
"appium:platformVersion": "11.0",
"appium:deviceName": "emulator-5554",
"appium:app": "/Users/faithberroya/Downloads/test.apk",
"appium:automationName": "UiAutomator2",
"appium:appPackage": "com.test.school.assignment.rc",
"appium:appActivity": "com.test.school.assignment.ui.SplashActivity"
}
# launch app
context.driver = webdriver.Remote("http://0.0.0.0:4723/wd/hub", capabilities)
# add wait time
context.driver.implicitly_wait(20)
# app
context.app = Application(context.driver)
Current pip list
Appium-Python-Client 2.10.1
behave 1.2.6
certifi 2023.5.7
pip 23.1.1
requests 2.31.0
selenium 4.9.0
selenium==4.9.1
and it worked for my case – Hernandes