Skip to content

Instantly share code, notes, and snippets.

@billynyh
Created March 23, 2013 06:43
Show Gist options
  • Save billynyh/5226709 to your computer and use it in GitHub Desktop.
Save billynyh/5226709 to your computer and use it in GitHub Desktop.
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage
import time
def scroll(n):
device = MonkeyRunner.waitForConnection()
for i in range(n):
print i
device.drag((216, 500), (216, 200), 0.1, 100)
time.sleep(0.5)
scroll(10000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment