脚本:


执行脚本:

实现代买2
实现代码1
查看设备名称 命令:adb devices (device前面的数字就是设备名称)
MonkeyRunner.sleep(2)等待时间
MonkeyRunner 脚本名 运行脚本
CMD下获取包名:
命令:adb shell dumpsys activity | findstr -i 或 adb shell dumpsys activity | findstr "mFoc"
MonkeyRunner命令实例