WPF application not recognized properly
Posted: Thu Oct 30, 2014 4:46 pm
We have a WPF desktop application and we encountered a problem while implementing an aspect of our automation framework.
For various reasons, we start the application as a different user during our automation. We do that, by impersonating a user, which has the same result as clicking on an application and selecting "Run as different user". That way we can test different user permissions and different cases.
So, we are logged in as userA, but the application starts as userB or userC. All the users have the same permissions. When the application would run as userB or C, Ranorex would not find the elements then.
By using the spy and comparing the two applications for some reason they look different. The first one is recognized as WPF, but the second one is recognized as WIN32.
I was able to repro this on Visual Studio 2013 as well and I am attaching the snapshots.
Any idea what might be causing this issue?
For various reasons, we start the application as a different user during our automation. We do that, by impersonating a user, which has the same result as clicking on an application and selecting "Run as different user". That way we can test different user permissions and different cases.
So, we are logged in as userA, but the application starts as userB or userC. All the users have the same permissions. When the application would run as userB or C, Ranorex would not find the elements then.
By using the spy and comparing the two applications for some reason they look different. The first one is recognized as WPF, but the second one is recognized as WIN32.
I was able to repro this on Visual Studio 2013 as well and I am attaching the snapshots.
Any idea what might be causing this issue?