Having trouble testing my WPF app with Coded UI Test 17 September 2011 Donovan-Brown Work (0) Problem: I cannot find my WPF TextBlock using the Coded UI test because the value is data bound and changes. Solution: Set the Name attribute on the controls of your View which sets the AutomationId. Explanation: Many WPF developers only place the Name attribute on items they intend to access f... [More]
How to reach nested controls using Coded UI Test Builder 19 January 2011 Donovan-Brown Work (0) Problem I have a span nested inside an anchor tag and I cannot reach it with CodedUI Test Builder. Solution Use the control navigation button in the Add Assertions dialog. Explanation While trying to check the attributes on a link in a web application I could never see the font style to... [More]
How to change the name of a CodedUI method without Feature Pack 2. 06 September 2010 Donovan-Brown Work (0) Problem: I want to change the name of a method generated by the Coded UI Builder. Solution: Modify the UI map and regenerate code. Explanation: I would suggest downloading Feature Pack 2. However, if you are not a MSDN subscriber you may not have access to FP2. When you record using... [More]
Demo Source Code 11 February 2010 Donovan-Brown Work (0) For those that wanted the demo code I presented today in the Web Cast it is here. It includes the code to databind a Coded UI Test. Thanks for joining me and I hope you enjoyed it. Demo.zip (408.41 kb)