Popup disappearing with out useraction

8 views
Skip to first unread message

sri

unread,
Mar 7, 2017, 11:34:52 PM3/7/17
to KIF iOS Automated Testing Framework
GoodEvening:

i am trying to capture screenshot of popup.After tap element with accesabilityIdentifier it is opening popup but without user action i was navigating back to old screen

i want to capture popup and do comparison 


tester.tapElement(withAccessibilityIdentifier: "popup1")

 tried with wait condition but that is applying after popup disappears

Thanks in advance

Cheers
sri

Michael Lupo

unread,
Mar 8, 2017, 5:31:44 AM3/8/17
to kif-fr...@googlegroups.com
Is the pop-up instantiated from your app or is it a system prompt? For example, a system pop-up would be one that prompts a user to accept notifications. Likewise, to ask the user to access your photos. If indeed there is a system pop-up appearing, KIF will not be able to access it either by tap or screenshot.

If the "context" of the Pop-up is owned by your app (sorry for the android-ism), then I suspect you should have no issue with capturing it.

What if, as a test of your theory, you went to the app code and changed the length of the pop-up display before disappearing. That might help you to debug.
--
You received this message because you are subscribed to the Google Groups "KIF iOS Automated Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kif-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sri

unread,
Mar 8, 2017, 7:52:43 PM3/8/17
to KIF iOS Automated Testing Framework
Thanks Michael.
this is IOS alert means which is my app popup 
teser.expectAlert() is help me to stay on poup then able to capture and save it
Reply all
Reply to author
Forward
0 new messages