How to retreive text from the text field

Sep 20, 2010 at 1:01 PM

I have a text field and would like to know how to retrieve the text from the text field. Can someone please help? Thanks.

Sep 20, 2010 at 1:42 PM
Edited Sep 20, 2010 at 1:42 PM






Label label = window.Get<Label>(SearchCriteria.ByAutomationId("id"));

string text = label.Name;



Sep 20, 2010 at 1:56 PM

Thanks for the response. Can I use the same method to retreive the text from the textbox as well?