Page 1 of 1
How to Listing Windows?
Posted: Sat Apr 20, 2019 4:08 am
by mocmeo1998
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!
Re: How to Listing Windows?
Posted: Mon Apr 22, 2019 6:07 pm
by odklizec
Hi,
Unfortunately, without seeing your app under test, or, at very least, its snapshot (NOT screenshot), it’s impossible to suggest something reliable. I’m not even sure, if you want to go through windows generated be your app, or multiple (randomly opened) apps and simply search for the window of your own app? Additionally, from your description it seems, as if you are not using Ranorex Studio, just Ranorex libs? In this case, you are not able to use Ranorex repository, which means you will have to find elements via xpaths and Find method (and its variants). See Ranorex API, available here...
https://www.ranorex.com/Documentation/Ranorex/
As mentioned, there is not enough info to provide more reasonable answer. So please post a Ranorex snapshot (not screenshot), pointing to your app and its windows. Thanks.