Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

While practicing with Coded UI Tests on a Visual Studio 2010 project that uses many WPF datagrids, I've encountered this common error frequently: "Last action on Row was not recorded because the control does not have any good identification property." I'm using data-binding to ADO.Net datasets, so it really wouldn't be appropriate to override ToString(), as practically all of the solutions I've seen on the Web recommend. On occasion I've also seen XAML solutions that involve setting the AutomationProperties.Name, such as one recommended by RituParna at this Microsoft thread :

    <Setter Property="AutomationProperties.Name" Value="{Binding XPath=@Name}"/> 

All of the examples I've run across use @Name from XML query syntax, but what I need is the column name to bind to, since I'm using an ADO.Net dataset. I've experimented with using various column names with AutomationProperties.Name, yet still receive the same error when I run Coded UI Tests. Does anyone have any idea of what value I should supply to it, or of any other workaround that might apply to Coded UI Tests with bindign to ADO.Net datasets? Thanks in advance for any help. :)

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.