You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to select the platform/device via yht python appium test script as specified in the example app with appium python client 2.6.1 and it never grabs the platform from these options always looking into the yml. If I remove the device from the yml then it simply fails, almost as if these options are completely avoided.
from appium import webdriver
from appium.options.ios import XCUITestOptions
from appium.webdriver.common.appiumby import AppiumBy
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
# Options are only available since client version 2.3.0
# If you use an older client then switch to desired_capabilities
# instead: https://github.com/appium/python-client/pull/720
options = XCUITestOptions().load_capabilities({
# Specify device and os_version for testing
"deviceName": "iPhone 11 Pro",
"platformName": "ios",
"platformVersion": "13",
# Add your caps here
})
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", options=options)
The text was updated successfully, but these errors were encountered:
If you have similar capabilities mentioned in the test script as well as the browserstack.yml file, the capabilities in the browserstack.yml file take precedence.
When you remove the device from the yml file, it simply fails because we have removed the support for the IOS device 'iPhone 11 Pro' (IOS 13) that is specified in the above test script.
So, please change the device to iPhone 11 instead of iPhone 11 Pro and check if the issue gets resolved for you.
We will make sure to update the script in the repo from our end too.
I hope this helps you.
In case you require any further assistance on this, please feel free to write to us at [email protected].
ganesh-gsk
added a commit
to ganesh-gsk/python-appium-app-browserstack
that referenced
this issue
Jan 24, 2025
Hello,
I am trying to select the platform/device via yht python appium test script as specified in the example app with appium python client 2.6.1 and it never grabs the platform from these options always looking into the
yml
. If I remove the device from theyml
then it simply fails, almost as if these options are completely avoided.The text was updated successfully, but these errors were encountered: