-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to remove DeprecationWarning: desired_capabilities has been deprecated #680
Comments
Perhaps #640 is the final fix. Handling built-in warning as https://docs.python.org/3/library/warnings.html could be a workaround. |
@KazuCocoa , I tested on the latest version which is 2.1.2, but it still has the warning problem. |
The #640 is an open issue. Did you try the below before calling a new session request as the above link of warnings?
|
Ok.
|
My solution is to add this in my pytest.ini file.
|
The problem
Code:
self.driver = webdriver.Remote(self.hub_url, self.caps, keep_alive=False)
Error:
/Users/user/.pyenv/versions/3.7.10/lib/python3.7/site-packages/appium/webdriver/webdriver.py:274: DeprecationWarning: desired_capabilities has been deprecated, please pass in an Options object with options kwarg
Environment
The text was updated successfully, but these errors were encountered: