关于Android Monkeyrunner Python脚本的问题
fromcom.android.monkeyrunnerimportMonkeyRunner,MonkeyDevice,MonkeyImagedevice=MonkeyR...
from com.android.monkeyrunner import MonkeyRunner,MonkeyDevice,MonkeyImage
device=MonkeyRunner.waitForConnection()
device.touch(461,1203,'DOWN_AND_UP')
MonkeyRunner.sleep(3)
for i in range(1,11):
print i
device(362,1190,MonkeyDevice.DOWN)
MonkeyRunner.sleep(6)
device(362,1191,MonkeyDevice.UP)
MonkeyRunner.sleep(5)
运行后,出现如下错误提示:
File "D:\monkeyrunner\??.py", line 7, in <module>
device(362,1190,MonkeyDevice.DOWN)
TypeError: 'com.android.monkeyrunner.MonkeyDevice' object is not callable
不知道为什么会出现这个情况,求大神解答? 展开
device=MonkeyRunner.waitForConnection()
device.touch(461,1203,'DOWN_AND_UP')
MonkeyRunner.sleep(3)
for i in range(1,11):
print i
device(362,1190,MonkeyDevice.DOWN)
MonkeyRunner.sleep(6)
device(362,1191,MonkeyDevice.UP)
MonkeyRunner.sleep(5)
运行后,出现如下错误提示:
File "D:\monkeyrunner\??.py", line 7, in <module>
device(362,1190,MonkeyDevice.DOWN)
TypeError: 'com.android.monkeyrunner.MonkeyDevice' object is not callable
不知道为什么会出现这个情况,求大神解答? 展开
2个回答
2014-07-03
展开全部
t67777uy7uuiuuu77y7y777
tt6y6
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询