Skip to content

Instantly share code, notes, and snippets.

@ndmanvar
Created May 31, 2016 15:34
Show Gist options
  • Save ndmanvar/26f749f698e1ecb7a3b60da1620767a8 to your computer and use it in GitHub Desktop.
Save ndmanvar/26f749f698e1ecb7a3b60da1620767a8 to your computer and use it in GitHub Desktop.
# usage: $ python appium_start_manual_test.py
# remember to replace YOUR_SAUCE_USERNAME and YOUR_SAUCE_ACCESS_KEY with actual username/access_key
from appium import webdriver
import time
driver = webdriver.Remote(
command_executor="http://YOUR_SAUCE_USERNAME:[email protected]/wd/hub",
desired_capabilities={
'deviceName': 'iPhone 5',
'appiumVersion': '1.4.16',
'browserName': '',
'platformName': 'iOS',
'platformVersion': '9.0',
'deviceOrientation':'portrait',
'app': 'https://s3.amazonaws.com/appium/TestApp8.4.app.zip',
'name': 'sample ios test',
'commandTimeout': 600,
'idleTimeout': 1000,
'maxDuration': 1800,
})
while True:
time.sleep(60)
source = driver.page_source;
# press control + c to quit, and then click 'cancel' on the top right on Sauce UI for test/session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment