Listing Windows?

Class library usage, coding and language questions.
VanSkalen
Posts: 2
Joined: Fri Jul 28, 2006 2:20 am

Listing Windows?

Post by VanSkalen » Fri Jul 28, 2006 2:25 am

Is there a way to list the windows open on the desktop using Ranorex? For our software automation testing, each window is identified uniquely by a label in the status bar, and I will need to flip through all of the open windows until the correct screen is found.

We're coding against the Ranorix .Net library, but could look at a DLL Import call to the Core if it would be possible using that method.

Thanks for any help and for the great library!

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Fri Jul 28, 2006 3:38 pm

I implemented the needed functionality only in RanorexCore at the moment, but it's an easy work to support it in the next Version 0.9.2.
The Application class will have a Form collection member. Each element of this collection will represent a top level window as a Form. You can walk through this collection and read the properties of each top level window.

Please contact me, if you need earlier this functionality, i can send you a Ranorex-0.9.2-Alpha1 Version at the beginning of the next week.

Jenö Herget
Ranorex Team