Handle popups programatically.

Ask general questions here.
rampage333
Posts: 5
Joined: Mon Nov 17, 2014 4:36 am

Handle popups programatically.

Post by rampage333 » Tue Jan 06, 2015 6:59 am

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.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Handle popups programatically.

Post by krstcs » Tue Jan 06, 2015 2:32 pm

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.
Shortcuts usually aren't...