Page 1 of 1

WPF .NET dynamic properties with UiaOnly

Posted: Sat Oct 10, 2020 1:40 am
by pawnder
I'm using Ranorex 9.3.3 with a WPF desktop application and the UiaOnly plugin because with the WpfImprovedOnly plugin it takes a LONG time for Ranorex to track a UI element (20 seconds or more). But, with UiaOnly, I'm not seeing the dynamic properties on my .NET objects which I would like to access for validation. Is there a way to see dynamic properties using UiaOnly? Thanks.

Re: WPF .NET dynamic properties with UiaOnly

Posted: Wed Oct 14, 2020 6:21 am
by odklizec
Hi,

The only reason why WPFImproved takes too long to find an element is, that the xpath behind the searched element is most probably not specific enough? Have you tried to improve the xpath? Also, have you using Ranorex Whitelist feature? If not, you should definitely try it! Once a process is added to the whitelist, Ranorex searches for the element only in given process, which tremendously improves the speed of search.

As for UiaOnly, it's unfortunately pretty limited and therefore, it may not display everything you need. This is why there is recommended to us WPFImproved, although it may be a bit slower, because of number of displayed details.