How to read the Innertext value out of an item

Class library usage, coding and language questions.
Todor
Posts: 66
Joined: Mon Jul 25, 2011 11:28 am

How to read the Innertext value out of an item

Post by Todor » Wed Aug 03, 2011 8:33 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Wed Aug 03, 2011 1:44 pm

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
.
Image