I have a Dialog wit h
TitleBar, Text and OK Button
I want to verify that the displayed text contains some keywords, but I can't get the text
UIItem text = window.Get<UIItem>( SearchCriteria.ByControlType( ControlType.Text ) );
but text is null
UIVerify display the correct message, I try also TextBox instead of UIItem but this is also null.
I can use AutomationElement to achiev what I want but I think white should be able to get such things.