How to resolve WPF issue

Ask general questions here.
jakijain
Posts: 4
Joined: Wed Aug 11, 2021 5:28 am

How to resolve WPF issue

Post by jakijain » Tue Sep 14, 2021 1:59 pm

Hello Team,

I am using Host.local.runapplication() function. But after Execution I have found two type of Issues.

1. UI elements in your 'WPF' AUT can’t be identified issue.
2.Lineage Glue rule 'win32_child_windows' issue.

As you can see in attached snapshots.
uft.PNG
How can I resolved these issues?
You do not have the required permissions to view the files attached to this post.

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

Re: How to resolve WPF issue

Post by odklizec » Thu Sep 16, 2021 11:46 am

Hi,

Have you followed the suggestion form the first error? Please make sure that the test is started as Administrator. Also, have you tried to run the test from Studio, started as Administrator?

As for the second error, it's hard to say or suggest anything useful, without knowing the context. Also, you forgot to mention what version of Ranorex are you using? Please use the most recent version 10.1.1.
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

jakijain
Posts: 4
Joined: Wed Aug 11, 2021 5:28 am

Re: How to resolve WPF issue

Post by jakijain » Mon Sep 20, 2021 4:13 am

Yes, I have tried to run application as Administrator but still facing same error. I am using Ranorex 9.5.1

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

Re: How to resolve WPF issue

Post by odklizec » Mon Sep 20, 2021 6:52 am

Hi,

Well, the most recent Ranorex version is 10.1.1, so it does not make sense to debug this kind of issue with outdated 9.5.1. Please update Ranorex with most recent version.

At next, please upload a Ranorex snapshot (NOT screenshot) of the problematic element. Ideally, run the Spy both as administrator and non-administrator and take two snapshots. Thanks.
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

tam
Posts: 3
Joined: Fri Apr 23, 2021 6:54 am

Re: How to resolve WPF issue

Post by tam » Wed Oct 13, 2021 2:04 pm

Hi there,
I also had a long running problem with the "UI elements can't be identified" error.
The problem for me was that, after starting my program from Ranorex, I needed a fixed delay, because the application needed time to finish initializing. Unfortunately it's not possible to do a "wait for" action there, because that already tries to access the UI, which isn't available yet.
So if your error appears directly after starting your application I can really recommend giving it some time before you access any of it's elements.

Regards,
Tam