how to catch popups which does not have unique property.

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Saha
Posts: 39
Joined: Tue Mar 01, 2011 6:20 pm

how to catch popups which does not have unique property.

Post by Saha » Wed Apr 20, 2011 6:50 pm

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.
Attachments
Invalid territory.rxsnp
(323.39 KiB) Downloaded 214 times

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

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

Post by Ciege » Wed Apr 20, 2011 7:34 pm

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.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Thu Apr 21, 2011 8:27 am

Hi,

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

Regards,
Peter
Ranorex Team
.
Image