how to get txtArea value. : General Questions

how to get txtArea value.

Ask general questions here.

how to get txtArea value.

Postby sdimbre » Wed Sep 21, 2011 1:48 pm

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
Attachments
txtArea.JPG
file showing txtarea having value 'SDimbre'
txtArea.JPG (3.18 KiB) Viewed 63 times
sdimbre
 
Posts: 16
Joined: Wed Sep 07, 2011 1:38 pm

Re: how to get txtArea value.

Postby sdaly » Wed Sep 21, 2011 1:54 pm

Ranorex.Text txtField = "rxpath to field";
Console.WriteLine(txtField.Text);
User avatar
sdaly
 
Posts: 213
Joined: Mon May 10, 2010 12:04 pm
Location: Dundee, Scotland

Re: how to get txtArea value.

Postby Support Team » Wed Sep 21, 2011 2:01 pm

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
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to General Questions

Who is online

Users browsing this forum: No registered users and 0 guests