Verifying WPF data bound item controls in Coded UI Test recording context

Coded UI Test relies on unique identification properties of controls to form a resilient search condition during recording. In WPF you can data bind properties of a control and its children collection of ItemsControl such as ListBox, ComboBox, DataGrid, TreeView, etc. An earlier post here describes the problem in more detail. Coded UI Test makes a…

4

Accessing some "unreachable" WPF controls in Coded UI Test

Recently we got some feedback from a customer that they are not able to access some control inside a datagrid cell. Basically they wanted to do some validation on this control’s properties. Coded UI Test uses the UIAutomation’s ControlView TreeWalker to do all UI tree navigation. Hence, if a control is not present in the ControlView,…

5

Decoding the Coded UI Test playback failure – "Search may have failed at ControlX as it may have virtualized children …"

While automating WPF controls in Coded UI Test, the playback would sometimes through an exception with the following error message: “Search may have failed at <ControlX> as it may have virtualized children. If the control being searched is descendant of <ControlX> then including it as the parent container may solve the problem.”   In this…

7