SmartBear Connect 2018
Join us at SmartBear Connect 2018 on October 29th & 30th in Boston, MA.
Apply to speak and share your experience with the greater SmartBear Community
Frequent Contributor
Accepted Solution

WPF not recognizing any objects

I am trying to test a new application that uses WPF controls. When I try to view the objects using Object Spy it only sees the whole application as one big window and does not identify any of the individual controls.




I fee like I somehow overlooked step 1 in the "how to test WPF applications" but I am not finding my answer.

Posts: 1,986
Topics: 15
Kudos: 791
Solutions: 155
Registered: ‎07-18-2013

Re: WPF not recognizing any objects

There's a lot of information in here about identifying wpf objects.

Frequent Contributor

Re: WPF not recognizing any objects

I discovered that WPF worked when I created a new project but it was not working in my existing project. I assumed this meant there was some difference in the project settings so I went through them and discovered I needed some values entered under the UI Automation section.


I added the following:

WPF required.png


This solved the problem. These values default in the new projects but did not exist in my project. I have no clue what these are, but it works now.