How to read the Innertext value out of an item : Automation API

How to read the Innertext value out of an item

Class library usage, coding and language questions.

How to read the Innertext value out of an item

Postby Todor » Wed Aug 03, 2011 9: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
Todor
 
Posts: 66
Joined: Mon Jul 25, 2011 12:28 pm

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

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


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests