Page 1 of 1

Can we use the PopupWatcher for Android app?

Posted: Fri Dec 11, 2015 8:40 am
by phoenixnghi
Hello everyone,

I see there's an example of PopupWatcher for Windows apps, I tried doing the same for my Android project but did not succeed.
Could u please tell me is it possible to handle unexpected pop-up for Android/iOS native apps? I would be appreciated if someone gives me an example for Android project?

Thank you.

Re: Can we use the PopupWatcher for Android app?

Posted: Fri Dec 11, 2015 9:34 am
by odklizec
Hi,

It's definitely not possible to automate iOS native apps/dialogs. As for Android apps, you may be lucky with enabled "Android OS Automation" global setting option. You can find more details here...
http://www.ranorex.com/support/user-gui ... -apps.html

Re: Can we use the PopupWatcher for Android app?

Posted: Fri Dec 11, 2015 10:34 am
by phoenixnghi
Thanks for your reply,
I mean an unexpected pop-up of the native app, not from the system
For example, my app sometimes shows a pop up to ask for update, or ask for notification permission, how can I avoid those unexpected pop-ups?

Re: Can we use the PopupWatcher for Android app?

Posted: Fri Dec 11, 2015 10:44 am
by odklizec
Well, if you can track the element with Spy, you should be able to use PopupWatcher to take care of such messages. However, I think the notification permission message is coming from system! So I'm afraid, you will not be able to handle such kind of message. At least not on iOS. On Android, you may be lucky with above mentioned option? Just try to track the unexpected messages with Spy. If you can track them, there should be no problem to work with them.