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 blog, Tapas explains the details behind this playback failure, the current limitation we have in recorder for WPF controls and a workaround to fix this.

 

For more  details - https://blogs.msdn.com/b/tapas_sahoos_blog/archive/2010/12/28/decoding-the-coded-ui-test-playback-failure-quot-search-may-have-failed-at-controlx-as-it-may-have-virtualized-children-quot.aspx