Can we use the PopupWatcher for Android app?

Ask general questions here.
phoenixnghi
Posts: 11
Joined: Thu Nov 26, 2015 10:34 am

Can we use the PopupWatcher for Android app?

Post by phoenixnghi » Fri Dec 11, 2015 8:40 am

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.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3945
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Can we use the PopupWatcher for Android app?

Post by odklizec » Fri Dec 11, 2015 9:34 am

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
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

phoenixnghi
Posts: 11
Joined: Thu Nov 26, 2015 10:34 am

Re: Can we use the PopupWatcher for Android app?

Post by phoenixnghi » Fri Dec 11, 2015 10:34 am

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?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3945
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Can we use the PopupWatcher for Android app?

Post by odklizec » Fri Dec 11, 2015 10:44 am

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration