WPF .NET dynamic properties with UiaOnly

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Posts: 2
Joined: Sat Oct 10, 2020 1:34 am

WPF .NET dynamic properties with UiaOnly

Post by pawnder » Sat Oct 10, 2020 1:40 am

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.

User avatar
Ranorex Guru
Ranorex Guru
Posts: 7469
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: WPF .NET dynamic properties with UiaOnly

Post by odklizec » Wed Oct 14, 2020 6:21 am


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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration