FindMatchingControls for WPF windows

If you have used Coded UI Test API FindMatchingControls on a WPF window, you might have noticed that the returned UITestControlCollection doesn't have any children even if the window actually exists.

There is a small work around for this. You can go to the UIMap.uitest file, edit the window's search properties and remove the classname property from it (check the image below).