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.
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:
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.