Skip to end of metadata
Go to start of metadata

You can also clone this script directly from GitHub.

from appium import webdriver

desired_caps = {}
desired_caps['platformName'] = 'iOS'
desired_caps['appiumVersion'] = '1.4.16'
desired_caps['platformVersion'] = '8.4'
desired_caps['deviceName'] = 'iPhone 6 Device'
desired_caps['browserName'] = ''
desired_caps['name'] = 'Sample Test'

# Must have application uploaded to sauce storage for iOS RDC
# docs: https://wiki.saucelabs.com/display/DOCS/Temporary+Storage+Methods
desired_caps['app'] = 'sauce-storage:TestApp-iphoneos.app.zip'

driver = webdriver.Remote('http://YOUR_SAUCE_USERNAME:YOUR_ACCESS_KEY@ondemand.saucelabs.com:80/wd/hub', desired_caps)

# Test Actions here...

driver.quit()

  • No labels