Handle iOS Notifications popup after uninstall/install

Mobile Testing, Android App Testing.
txrackack
Posts: 8
Joined: Fri Mar 11, 2016 5:21 pm

Handle iOS Notifications popup after uninstall/install

Post by txrackack » Fri Sep 09, 2016 5:34 pm

I am using a the instrumentation command line to uninstall and then install an iOS application that has notifications. My next step is to execute the ranorex tests against the newly installed application. Because of the popup for allowing notifications, which apple requires, my test is failing. I have not been able to find a way of interacting with the popup. Is there a trick to getting past this automation snafu? :D

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

Re: Handle iOS Notifications popup after uninstall/install

Post by odklizec » Fri Sep 09, 2016 6:26 pm

Hi,

There is unfortunately no way to interact with iOS own dialogs. It's an iOS security issue.
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

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Handle iOS Notifications popup after uninstall/install

Post by krstcs » Fri Sep 09, 2016 6:44 pm

In addition to what Pavel said, it is my understanding that Ranorex does not recommend or support the installation/un-installation of mobile apps during a test. That is why there are no actions for it in the IDE toolset. That you were able to use the command-line to do it would merely be an unintended work-around.

In other words, install and uninstall should not be done as part of your automated testing.
Shortcuts usually aren't...