Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
SimpleTextBlock's Text property not appearing in UI Automation
posted

I'm using a SimpleTextBlock (but not in a xamDataGrid) and when I use Coded UI Test Builder to the find the control, the "DisplayText" property in CUI Test Builder comes up with an empty string instead of what it should contain, the "Text" property of the SimpleTextBlock. If I use UI Spy in place of Coded UI Test Builder, a similar thing happens, but in UI Spy, the property that is not populated is called "Name".

 

The SimpleTextBlocks were previously TextBlocks, and the automation worked correctly.

 

What does it take to get this to work again using SimpleTextBlocks?