Android, Robotium - Issue taking screenshot

后端 未结 3 1266
感动是毒
感动是毒 2021-01-15 16:40

I\'m trying to take a screenshot of my Android application using Robotium, I\'m using the below function that I found here.

public static String SCREEN_SHOTS         


        
3条回答
  •  滥情空心
    2021-01-15 17:11

    For taking screen shot at any point of the application Just write this piece of code

    solo.takeScreenshot();

    But don't forget to give permission in your main Application.

提交回复
热议问题