I have a large WPF application that I need to run automation tests on. I am using Coded UI test builder. When I hover over a cell in the application I can see all of it properties: automationId, ColumnHeader and more. How is it that when I click the refresh button the spy can't find the control he found just couple of secondes ago?
I have the same problem if I try to find this control using code:
WpfCell myCell = new WpfCell(); myCell.SearchProperties.Add(WpfCustom.PropertyNames.AutomationId,"Cell_1_2"); myCell.DrawHighlight(); The cell is not highlighted and I get ControlNotFoundExceptin.