Page 1 of 1

Finding several objects with specific values in a repository

Posted: Wed Apr 19, 2017 12:37 pm
by ukeggagu
I have used Ranorex Spy version 7.0.0 to generate a repository of thousands of objects i.e. WPF controls

What I want to do now is, try to find all objects which of type "Text" and which have a value of "focusable=false".

There are thousands of objects within the repository, so sifting through manually is not an option. Is there anything in Ranorex Spy which can help find these specific objects?

Thanks.

Gary

Re: Finding several objects with specific values in a repository

Posted: Thu Apr 20, 2017 9:58 am
by jma
Hi Gary,

Basically, there's a search functionality in the Ranorex Repository, which you could use to search for a string value (for example, searching for a part of the path).
repository_search.png
Alternatively, I would suggest doing a live search for the elements in Ranorex Spy. After that, you can add the corresponding items to the repository.
spy_search.png
In my opinion the latter approach is better because you can do a more sophisticated search for UI elements. Furthermore, it makes sense to add only those UI elements to the repository, which are actually needed.

I hope that helps!