TA的每日心情 | 郁闷 2016-11-23 12:02 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
# coding:utf-8
from com.android.monkeyrunner import MonkeyRunner,MonkeyDevice
device=MonkeyRunner.waitForConnection(6,'emulator-5554')
for i in range(1,10):
device.startActivity(component="com.xs.cn/.activitys.LoadingActivity")
MonkeyRunner.sleep(2)
device.touch(280,470,"DOWN_AND_UP")
MonkeyRunner.sleep(1)
device.press('KEYCODE_BACK','DOWN_AND_UP')
MonkeyRunner.sleep(1)
device.touch(485,1072,"DOWN_AND_UP")
print i
else:
print('end')
执行后出错了,是哪里不对呢
|
|