#๐Ÿ”’ Appium basic error

25 messages ยท Page 1 of 1 (latest)

pseudo vigil
#
import time

desired_capabilities = {
    "platformName": "iOS",
    "platformVersion": "16.7.4",
    "deviceName": "",
    "udid": "",
    "automationName": "XCUITest",
    "bundleId": "",
    "xcodeOrgId": "",  
    "xcodeSigningId": "iPhone Developer",  
}

driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", desired_capabilities)
time.sleep(10)
driver.quit()

error: AttributeError: 'NoneType' object has no attribute 'to_capabilities'

near tigerBOT
#

@pseudo vigil

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

#

Hey @pseudo vigil!

It looks like you pasted Python code without syntax highlighting.

Please use syntax highlighting to improve the legibility of your code and make it easier for us to help you.

To do this, use the following method:
```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
You can **edit your original message** to correct your code block.
pseudo vigil
# cerulean drift full error traceback?

/Users/tomasxmsl/myenv/bin/python "/Users/tomasxmsl/Desktop/appium python/main.py"
(myenv) tomasxmsl@Tomass-MacBook-Air appium python % /Users/tomasxmsl/myenv/bin/python "/Users/tomasxmsl/Desktop/appium python/main.py"
Traceback (most recent call last):
File "/Users/tomasxmsl/Desktop/appium python/main.py", line 15, in <module>
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", desired_capabilities)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tomasxmsl/myenv/lib/python3.12/site-packages/appium/webdriver/webdriver.py", line 229, in init
super().init(
File "/Users/tomasxmsl/myenv/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 188, in init
capabilities = options.to_capabilities()
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'to_capabilities'
(myenv) tomasxmsl@Tomass-MacBook-Air appium python %

pseudo vigil
cerulean drift
#

no idea where i'm from

pseudo vigil
#

its for android

#

im using appium for iOS device

pseudo vigil
pseudo vigil
#

thats why im asking here

cerulean drift
#

isnt there something similar from appium.options.xxx import UiAutomator2Options but for ios?

pseudo vigil
#

0 idea i aint gonna lie

#

im new to appium

#

even tho im skilled with selenium

cerulean drift
#

check appium.options package then

#

there might be something besides android.py module

pseudo vigil
#

bet

#

zkusim

#

diky

near tigerBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.