我已经使用spoon开源工具在robotium中使用以下代码拍摄android设备屏幕截图
Spoon.screenshot(solo.getCurrentActivity(), "Login_failed");
我想在 android UIAutomator 工具中使用勺子截屏。
请让我知道我应该在 Spoon.screenshot 命令的 UIAutomator 工具中通过什么来代替“solo.getCurrentActivity()”。
我想如果我在 UIAutomator 中得到 getCurrentActivity 那么我可以传递参数,但我不知道如何得到它?