Unable to get the child object of WPF window

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
niranjantest
Posts: 10
Joined: Fri May 12, 2017 11:21 am

Unable to get the child object of WPF window

Post by niranjantest » Fri May 12, 2017 11:32 am

Hi

I am using RANORX 5.4.5 version and trying to automate a desktop application (Infragristic and WPF controls). I have one SPLASH screen where there is option to select various option . My target is to first check the right version content appeared or not and if found then click on that .

But RANOREX spy recognizing it as one element only(List) and i cannot the individual list elements appeared on it. Please see the snapshot.

Any help will be very helpful.

regards,
Nir

Vega
Posts: 222
Joined: Tue Jan 17, 2023 7:50 pm

Re: Unable to get the child object of WPF window

Post by Vega » Fri May 12, 2017 9:41 pm

It doesn't look like your snapshot attached to your post. Have you tried using Microsoft Inspect to see if accessibility is present? If Microsoft Inspect cannot see it either, there may be an issue with accessibility. If accessibility is lacking, you will need to talk to your developers about adding accessibility.

Also make sure that both Spy / Ranorex have the same permission level as the application under test. Lastly I would also try it with Ranorex 7.0+ as this version comes with a new "WPFImproved" plugin which is much better in my experience.

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

Re: Unable to get the child object of WPF window

Post by odklizec » Mon May 15, 2017 7:14 am

Hi,

Ranorex 5.4.5 is way too old and no longer supported. WPF recognition has been improved several times since 5.4.5. So, as already suggested by Vega, I would definitely try latest 7.0.1 with WPFImproved option.
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

niranjantest
Posts: 10
Joined: Fri May 12, 2017 11:21 am

Re: Unable to get the child object of WPF window

Post by niranjantest » Mon May 15, 2017 2:42 pm

Thanks Guys..I am able to recognize the individual item now by enabling the plugins for the WPF options true in the Ranorex 5 version only.