I am facing a problem on android application test automation using appium, selenium and uiautomatorviewer. I would like to ask what are other ways/alternatives to automate the app when the app has screenshot restrictions are in place and screenshot is not captured using uiautomatorviewer because without screenshot I am unable to locate the elements on the app.
I am running the application in Android Emulator environment and it is trustwallet application.
I tried to take screenshot using uiautomatorviewer to locate the elements but found that the app has flagsecure enabled and it prevents taking screenshot. I am wondered if there is any hack exist for it or not? Because without screenshot I cannot locate the elements on the app or perform required actions like click or presskey etc.