Page 1 of 1

Is there any way of capturing temporary popups?

Posted: Mon Sep 28, 2015 11:56 am
by stapes
I am testing an Application, where when I try to add a record with empty fields, I see a temporary Error dialog that pops up like a tool-tip & disappears after a second or two. The developer tells me these are 'Toast' messages?

Is there any way of capturing this dialog so that I can validate its occurence?

Re: Is there any way of capturing temporary popups?

Posted: Mon Sep 28, 2015 12:00 pm
by odklizec
Hi,

You can use Instant Tracking feature described here:
http://www.ranorex.com/support/user-gui ... html#c3181
Of course, if the element disappears in a second or two, you will have to react quickly ;)

Re: Is there any way of capturing temporary popups?

Posted: Mon Sep 28, 2015 12:23 pm
by Support Team
Hi stapes,

Tracking toast messages on android can be very tricky since the message itself is shown only for a short amount of time. I’d suggest performing the following steps
  • Open Ranorex Spy
  • Perform an action on your device to show the Toast Message
  • Hit the refresh button in Ranorex Spy
Now you should be able to see the corresponding element in Ranorex Spy.

Hope this helps.

Regards,
Markus (S)

Re: Is there any way of capturing temporary popups?

Posted: Mon Sep 28, 2015 12:46 pm
by stapes
No, that didn't work. I decided to use a workaround here for the time being, as I can't seem to pick up the Toast message. The methods given are way too hit or miss.
Instead, I can validate that control has remained on the same screen. Had the record saved, it would have moved on to a different screen.