-
Notifications
You must be signed in to change notification settings - Fork 555
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
'NoneType' object has no attribute 'to_capabilities' is displayed #918
Comments
I'm not sure what selenium client version your environment had, but you might need to follow options style: This is compatibility matrix: |
from appium.options.android import UiAutomator2Options desired_cap = { options = UiAutomator2Options().load_capabilities(desired_cap) |
Issue is fixed after doing pip install requirements.txt might be selenium n appium were not compatible earlier |
Can you share me the solution |
@denji-glitch I encountered the same issue, but I have resolved it now. The reason was that the version of the 'appium-python-client' package was not compatible with the version of 'selenium'. This is their version compatibility list: |
Estou encontrando o mesmo problema, já instalei as versões compativeis do cliente appium e selenium e não tem jeito. Consigo usar tranquilamente o appium desktop, mas não consigo conectar o vscode de jeito nenhum. AttributeError Traceback (most recent call last) File c:\Users\MAURICIO\Desktop\AUTOMAÇÃO-GESTOR\venv\Lib\site-packages\appium\webdriver\webdriver.py:229, in WebDriver.init(self, command_executor, keep_alive, direct_connection, extensions, strict_ssl, options) File c:\Users\MAURICIO\Desktop\AUTOMAÇÃO-GESTOR\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py:185, in WebDriver.init(self, command_executor, keep_alive, file_detector, options) AttributeError: 'NoneType' object has no attribute 'to_capabilities' |
Please use Options for for the inspector, it looks like we need to update |
In My case I update Appium-Python-Client. So I downgrade the python version. |
Estava usando o java 8 e não tava funcionando, depois que atualizei para o mais recente, tudo funcionou. |
This worked for me this is due to the selenium and python bindings. |
Try this solution
|
The problem
Unable to initialize appium driver.
Environment
Details
Link to Appium Logs
Code To reproduce issue
desired_cap = {
"appium:uuid": f"{serial}",
"platformName": "Android",
"appium:platformVersion" : f"{platform_version}",
"appium:deviceName": 'Pixel 4 API 29',
"automationName": 'UiAutomator2',
"appium:app": f"{apk_Path}"
}
driver = webdriver.Remote("http://localhost:4723/wd/hub", desired_cap)
ERROR - [2023-09-29_12:53:20] Traceback (most recent call last):
File "C:\Users\spolnati\Desktop\local\CD_IQConnect\TestFramework\test_suites\Mobile_application\functional.py", line 94, in verify_joinmeeting
driver = desired_caps_android("Daikin", "Mobile Application", self.serial)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\spolnati\Desktop\local\CD_IQConnect\TestFramework\utilities\libraries\lib_functions.py", line 2490, in desired_caps_android
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", desired_cap)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python3115\Lib\site-packages\appium\webdriver\webdriver.py", line 229, in init
super().init(
File "C:\Python3115\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 185, in init
capabilities = options.to_capabilities()
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'to_capabilities'
The text was updated successfully, but these errors were encountered: