Page 1 of 1

How to read the Innertext value out of an item

Posted: Wed Aug 03, 2011 8:33 am
by Todor
Hi, I have a question. Is it possible to read the value, for example Innertext, out of an item and into a variable?

Thanks in advance

Re: How to read the Innertext value out of an item

Posted: Wed Aug 03, 2011 1:44 pm
by Support Team
Hi,
Yes, if the element uses such a property. You can call the specific getter method of the repository element.
For the InnerText you can use this code:

Code: Select all

String str = repo.WebDocument.ATagRadio.InnerText;
Regards,
Markus
Ranorex Support Team