Skip to content

Instantly share code, notes, and snippets.

@majorvin
Created June 23, 2016 13:53
Show Gist options
  • Save majorvin/92b5aff71bbee05d1d3861163714c57d to your computer and use it in GitHub Desktop.
Save majorvin/92b5aff71bbee05d1d3861163714c57d to your computer and use it in GitHub Desktop.
Monkeyrunner example
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