Created
June 23, 2016 13:53
-
-
Save majorvin/92b5aff71bbee05d1d3861163714c57d to your computer and use it in GitHub Desktop.
Monkeyrunner example
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
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage | |
import time | |
# connection to the current device, and return a MonkeyDevice object | |
device = MonkeyRunner.waitForConnection() | |
for num in range(1,1000): | |
device.touch(560,400, 'DOWN_AND_UP') | |
time.sleep(0.1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment