This project is read-only.

Check Dialog Text

Jul 22, 2009 at 4:11 PM


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


I Try

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.





Jul 31, 2009 at 11:24 AM

what about window.Get<Label>("automation_id_of_label");

Jul 31, 2009 at 11:41 AM

Ups thanks,

I have forgotten to close this entry, I have found out this some days ago.

But there is a question belongs to this.

Is there a List which elements results on which ControlType?



Aug 2, 2009 at 11:45 AM


Aug 3, 2009 at 7:02 AM