Page 1 of 1

how to catch popups which does not have unique property.

Posted: Wed Apr 20, 2011 6:50 pm
by Saha
I have few unexpected popups in my application.
These popups does not have any unique IDs , it just has a title as "Windows Internet Explorer" which is not useful.
Is there any way I can catch these kind of popups while running my script.
I am not using ranorex repository , we have all the Id properties stored in access db.
Attached is the snapshot for this.

Re: how to catch popups which does not have unique property.

Posted: Wed Apr 20, 2011 7:34 pm
by Ciege
One way I did it long ago (I'm sure there is a better way, but I've not invested time into it) is to get an IList of all Ranorex Forms with the specific title you want.
Then loop that IList and get an IList of all Ranorex.Text elements from the form.
Then loop that IList and check for the text you are looking for.

Re: how to catch popups which does not have unique property.

Posted: Thu Apr 21, 2011 8:27 am
by Support Team
Hi,

Please take a look to following blog
http://www.ranorex.com/blog/handling-di ... up-windows

Regards,
Peter
Ranorex Team