device orientation
unknown
python
3 years ago
773 B
19
Indexable
# write python appium scrip to open google chrome and search for "appium", then close the browser, using browserstack
from appium import webdriver
from selenium.webdriver.common.keys import Keys
desired_cap = {
'bstack:options' : {
# "osVersion" : "11.0",
# "deviceName" : "Samsung Galaxy A52",
"osVersion" : "10.0",
"deviceName" : "Samsung Galaxy A11",
"appiumVersion" : "1.17.0",
"deviceOrientation" : "landscape",
"local" : "false",
"userName" : "<>",
"accessKey" : "<>",
},
"browserName" : "chrome",
}
driver = webdriver.Remote(
command_executor='http://hub-cloud.browserstack.com/wd/hub',
desired_capabilities=desired_cap)
# driver.orientation = "LANDSCAPE"
driver.get("http://www.google.com")
driver.quit()Editor is loading...