Thank you for your suggestion, unfortunately, it does not work.
Finally, I understand what happens in my case. Using the Automation Provider in a custom control (for example, Grid), we can select cells and return only properties supported by AutomationElementIdentifiers, it is impossible to return custom control properties for a test builder.
In the case of a control type, I can only return controls that are part of the AutomationIdentifier.
So, for my grid cell I used ControlType.Edit, but its not very useful, the values ββin the grid cells are not returned. Therefore, I decided to implement CodedUI support for my control, as described in MSDN .
thanks
Kalai
source share