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
How to read the Innertext value out of an item
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: How to read the Innertext value out of an item
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:
Regards,
Markus
Ranorex Support Team
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;
Markus
Ranorex Support Team