python-client
python-client copied to clipboard
The last error was: Keyword 'Swipe By Percent' failed after retrying for 10 seconds. The last error was: AttributeError: 'WebDriver' object has no attribute 'desired_capabilities'
Do I have the most recent component updates?
- [X] I use the most recent available driver/plugin and server versions
Is the component officially supported by the Appium team?
- [X] I have verified the component repository is present under the Appium organization in GitHub
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
I am trying to use swipe by percent keyword from Appium robotframework. However, when I execute the tests I get this error:
The last error was: Keyword 'Swipe By Percent' failed after retrying for 10 seconds. The last error was: AttributeError: 'WebDriver' object has no attribute 'desired_capabilities'
I read this related issue, tried updating to selenium 4.16.0, but issue remains the same.
Please let me know what could be the issue and how can I fix this? Thank you.
Expected Behavior
Swipe by percent should be able to swipe the app screen without any errors.
Minimal Reproducible Example
Here are my current pip3 installs:
Appium-Python-Client 3.1.0
requests 2.31.0
robotframework 7.0
robotframework-appiumlibrary 2.0.0
robotframework-archivelibrary 0.4.2
robotframework-assertion-engine 3.0.3
robotframework-browser 18.3.0
robotframework-oracledb 2.0.2
robotframework-pythonlibcore 4.4.1
robotframework-requests 0.9.7
robotframework-seleniumlibrary 6.2.0
selenium 4.16.0
Environment
- Operating system: MacOs
- Appium server version (output of
appium --version): 2.4.1 - Appium driver(s) and their version(s) (
appium driver list):UiAutomator2 - Appium plugin(s) and their version(s) (
appium plugin list): - Node.js version (output of
node --version):v21.7.2 npmversion (output ofnpm --version): 10.5.2- Last component(s) version which did not exhibit the problem:
- Platform and version under test: Android
- Real device or emulator/simulator: Read device
Link to Appium Logs
Further Information
No response