Forum Discussion

morde's avatar
morde
Contributor
12 years ago

Handling Unexpected Popup

Hi,



I am testing an application which sometimes throws popups that blocks my screen - which I would like to ignore from.




I read your article about Handling Unexpected Windows (http://support.smartbear.com/viewarticle/56466/) and from the remarks I understood that this solution is not good for this case (since the popups are Modal windows in the web app).



I also thought about using an "If .... End If", but this popup can jump anytime and anywhere so this in not an option.



Handling the popup means for me to click the "ok" button and refresh the page (Keys[F5]).

Is there a way to handle this situation?



Thank you,

Mor


 

2 Replies

  • simon_glet's avatar
    simon_glet
    Regular Contributor
    Hi Mor,



    Have you tried configuring your project playback properties ? Checkout the "On unexpected Window" section here.



    See attached image for visual aid.



    Sincerely
  • Hi again,



    Thanks for your help.



    Since the popup is a part of the testes app, and it can be mapped like any other object, will it appearance could be a trigger to an event? 



    I mean: creating an event "OnUnexpectedErrorPopup" which handles this error, and happens for the trigger "ErrorPopup.Exists = True". Is there a way to do so?



    Thank you