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