Page 1 of 1

how to get txtArea value.

Posted: Wed Sep 21, 2011 12:48 pm
by sdimbre
Hi Support,

I am in need to get TextArea value. For ex if there's a textarea box having value as 'SDimbre'(please see attachment) I want to get that value 'SDimbre' in some variable and use. Please forgive me for dumb question.

Thanks and Regards,
SDimbre

Re: how to get txtArea value.

Posted: Wed Sep 21, 2011 12:54 pm
by sdaly
Ranorex.Text txtField = "rxpath to field";
Console.WriteLine(txtField.Text);

Re: how to get txtArea value.

Posted: Wed Sep 21, 2011 1:01 pm
by Support Team
Hi,

you can access the attributes of a adapter in code.
So, if you have e.g. a TextAreaTag adapter you can access the attribute TagValue to get the value of it.
TextAreaTag textArea = "/Path/To/Your/textarea";
String value = textArea.TagValue;
Regards,
Tobias
Support Team