Created
March 23, 2013 06:43
-
-
Save billynyh/5226709 to your computer and use it in GitHub Desktop.
This file contains 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 | |
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