Part 3: Extending TestArchitect / Lesson #10: WPF Extensibility |

Suppose that we are running an AUT based on Telerik controls, and we may want to get the total number of items in a list box control.

We will explore a typical method of obtaining the total number of items by mapping the unknown RadListBox control to a known TestArchitect class, and then use the controlâ€™s get list item count to get the total number of items in an unknown list box control. Although class mapping is the most intuitive way of obtaining the total number of items, the result is incorrect, and, thus, necessitates an alternative method by using the WPF Extensibility solution; this method overrides the built-in action get list item count using the features in WPF Extensibility.