Created
May 31, 2016 15:34
-
-
Save ndmanvar/26f749f698e1ecb7a3b60da1620767a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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