有没有办法将MonkeyRunner的device.takeSnapshot()截图保存到手机的内部存储本身?我在网上看到的这个例子只将它保存到执行MonkeyRunner命令的计算机上。
http://www.vogella.com/tutorials/AndroidTesting/article.html#monkeyrunner_example
答案 0 :(得分:1)
尝试使用:
device.shell('screencap -p /sdcard/sc.png')
这会将屏幕截图保存到您的SD卡。