I have a colleague who tries to find an UI element using WpfImprovedOnly, but the result is returned with UI flavor.
Here the code we try to run
Code: Select all
RanorexExtensions.UseWpfImprovedOnly();
TAdapter adap = adapter.GetSingle<TAdapter>(rxPath, timeout);
RanorexExtensions.UseUiaOnly();
return adap;
Code: Select all
public static void UseWpfImprovedOnly()
{
Ranorex.Plugin.WpfConfiguration.WpfApplicationTrees = Ranorex.Plugin.WpfTreeSelection.WpfImprovedOnly;
Ranorex.Plugin.WpfConfiguration.ShowCompleteVisualTree = true;
}
Code: Select all
public static void UseUiaOnly()
{
Ranorex.Plugin.WpfConfiguration.WpfApplicationTrees = Ranorex.Plugin.WpfTreeSelection.UiaOnly;
}
He is running on Windows 10 (Creator Update) but it has also been reproduce on a Windows 8 machine.
Both are running Ranorex 7.2.0
Both Visual Studio and Spy are run as administrators.
Do you have any idea why this happens? I am running on a Windows 8 and don't have this issue.
Thanks in advance.