Page 1 of 1

Handle popups programatically.

Posted: Tue Jan 06, 2015 6:59 am
by rampage333
Hi,

i was wondering how do we handle popups such as this website: http://www.popuptest.com/popuptest1.html

popups that are not in your repository
popups that are dynamic.

thanks.

Re: Handle popups programatically.

Posted: Tue Jan 06, 2015 2:32 pm
by krstcs
Ranorex has to have an XPath in order to know which element you want it to manipulate/find/validate. The Repository holds XPaths related to objects.

You should know before the test which popups should potentially occur and therefore should be able to get the XPath for them, or create Repository elements for them.


One way or the other, you will have to tell Ranorex what XPath to look for. Using the repository is just the easiest way to store and manipulate XPaths related to specific elements.