WPF Failure - Physical Click Needed Before Spy Can Identify Controls

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
thenutter
Certified Professional
Certified Professional
Posts: 7
Joined: Wed Jun 05, 2013 11:40 am

WPF Failure - Physical Click Needed Before Spy Can Identify Controls

Post by thenutter » Thu Jun 04, 2020 11:55 am

Hi All,

I'm having a very strange issue that I've not seen before while automating applications.

My WPF Plugin option is set as -> WpfImprovedOnly

I have correctly automated logging into the AUT, navigated to a few menus but halfway through a Wizard it can't identify anything within the new page. I need to physically click inside the element (a dropdown box on the page) for Spy to recognise and populate the element tree.

I have tried changing the WPF plugin options without any luck, I have also tried switching the plugins during runtime:

Code: Select all

	
Ranorex.Plugin.WpfConfiguration.WpfApplicationTrees = Ranorex.Plugin.WpfTreeSelection.UiaOnly;
Configuration.Current.SaveToUserSettings();
        	
Ranorex.Plugin.WpfConfiguration.WpfApplicationTrees = Ranorex.Plugin.WpfTreeSelection.WpfImprovedOnly;
 Configuration.Current.SaveToUserSettings();
 
I have also tweaked all options within the settings and nothing seems to work, the only thing that works is clicking manually within the pane and then re-spying/re-searching for the element.

Does anyone have any idea here?

I am using the latest Ranorex 9.3.2.exe release and the AUT is a x86 application.

EDIT:

Looking at the logs it is throwing the following error, but the resolutions to this (changing options) are not working:

Code: Select all

2020-06-04 11:47:41.090|DEBUG|Ranorex.Report|Plugins: LineageGlueRule 'wpf_root' caused SerializationException on Execute. Unable to find assembly 'Ranorex.Plugin.WpfProxy, Version=9.3.2.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a'.
2020-06-04 11:47:41.090| INFO|Ranorex.Report|LineageGlueRule 'wpf_root' caused SerializationException on Execute. System.Runtime.Serialization.SerializationException: Unable to find assembly 'Ranorex.Plugin.WpfProxy, Version=9.3.2.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a'.
Thanks,
thenutter

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

Re: WPF Failure - Physical Click Needed Before Spy Can Identify Controls

Post by odklizec » Thu Jun 04, 2020 9:31 pm

Hi,

I think that this kind of problem must be discussed directly with Ranorex support. And they may need access to your app under test and the test environment. You see, without swing the AUT and exact environment, there is not much anyone here can do or suggest.
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