Hi,
When I started pilot of using VS2010 CodedUI with Infragistics 9.2.20092.2023 with builin FeatureBrowserDemo identification of expanders worked perfeclty. Expender identificated as part of the datagrid and CodedUI recognized every expander by name. However when I created my application that contains one datagrid - the every row expander recognized as Button and in addition to this it was outside of datagrid with same name, as as a result of this wrong recognithion - every click on any recognized expander button by CodedUI simmulates opening of first row only.
What I need to define in datagrid that expanders will recognized well by CodedUI?
Thanks,
Dima
Thank you for your response,
Can you attach any example that show what style need be changed?
Moreover I want define AutomationId for every cell too.
Dmitry Berkovich
Hello,
CUIT cannot find correctly each expansion indicator because by default all the expansion indicators in the grid have the same AutomationID, Name, ClassName and so on. Since the properties that can be examined with CUIT are all the same, the CUIT builder cannot create unique search criteria for each indicator. And if no unique ciriteria can be created, then only the first element will be clicked because it is the first matching the search criteria. Further more, because CUIT builder sees that all properties of the expansion indicators are the same, it creates only one class representing them.
You can get yourself out of this situation by defining a style which sets a unique AutomationID or Name to each expansion indicator. Then do your recording or search again. Then the CUIT builder will have unique properties for search criteria of different indicators and CUIT will click them successfuly.
Thanks
Ivan Kosharov