Page 1 of 1

Taking a screen shot of system pop up in Android

Posted: Mon Oct 16, 2017 11:53 pm
by tvu
Hi All,

I sometimes get an "Injecting to another application requires INJECT_EVENTS permission" error during my automation. I highly suspect that there is a system pop up showing at the time of the error. But, the screenshot in the reports doesn't show this pop up. I was able to manual reproduce the same type of error by reinstalling the app and try to interact with the device via Spy while having the "Allow location permission" system pop up visible. I can visually see the pop up on the device, but Spy can't.

I would like a way to take a screen shot of whatever is showing on the screen at the time of the failure.

Thanks.

Ranorex v7.2
Android OS 7.0 / 6.0

Re: Taking a screen shot of system pop up in Android

Posted: Tue Oct 17, 2017 7:43 am
by odklizec
Hi,

Have you enabled option Screenshots on AndroidOS?...
ScreenshotsAndroid.png

Re: Taking a screen shot of system pop up in Android

Posted: Tue Oct 17, 2017 9:39 pm
by tvu
Hi odklizec,

Yes, I already had that enabled.

Thanks.

Re: Taking a screen shot of system pop up in Android

Posted: Thu Oct 19, 2017 7:22 pm
by Support Team
Hello Tvu,

Thank you for posting your question in the Ranorex forums.

If I can encourage you to submit your issue to [email protected] then we can hopefully look at this issue closer, and see if there is anything that can be done to get this dialog or dismiss it.

I hope to hear from you soon.

Sincerely,

- M. Kendall McIntosh
Automation Support Engineer