Newsan 发表于 2014-7-23 17:31:27

[求助]monkeyrunner脚本运行提示no model named 'com'

脚本代码如下:
from com.android.monkeyrunner import MonkeyRunner,MonkeyDevice,MonkeyImage

device=MonkeyRunner.waitForConnection()

device.installPackage("E:/Bazi/Aiqingyuce/packagename.apk")

#查看应用包名和启动Activity:进入sdk的build-tools目录
#使用aapt dump badging apkdir/apkname
device.startActivity(component='com.lbtjni.yuce/com.lbtjni.lbtjni')

device.press("KEYCODE_MENU","DOWN_AND_UP")

result=device.takesnapshot()

result.writeToFile(r'E:/Bazi/Aiqingyuce/shot1.png','.png')

hwzhuang 发表于 2014-11-11 23:35:13

楼主是怎么运行的?

cuikejie123 发表于 2016-5-28 18:44:50

cmd窗口运行可以的吧
页: [1]
查看完整版本: [求助]monkeyrunner脚本运行提示no model named 'com'