Forum Discussion
You could use the "OnUnexpectedWindow" event handler... but I prefer your method...it's not an "unexpected window", you're expecting it and you need to execute the proper code...
Dear tristaanogre,
Thank you, Actually I am trying to check the pop-uped window buttons i.e Yes, No and Close. if I click No or Yes or Close Button the pop-uped window has to be closed and basing on the button clicked the main editor will perform according to that action.
What I am trying to do is , if it fails it will generate error and pop-uped window will not be closed. So, I am trying to close these pop-uped windows and continue the tests.
Did you get my point now ?
can I use these windows as "OnUnexpectedWindow" for fail cases ?
thanks and regards
SivaKartheek Sreeram