Hi,
How do I get the RunTime properties (properties such as InnerText, Enabled, Visible, Checked etc) of an Object.
E.g. Any method like
value = Object.Property("InnerText")
the variable 'value' would give me the RunTime data.
--dal
RunTime properties of an object
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: RunTime properties of an object
Please, read the following sections in the Ranorex User Guide on how to use Ranorex adapters:
http://www.ranorex.com/support/user-gui ... apter.html
For web elements you can also use the WebElement indexer to retrieve attribute values:
Alex
Ranorex Team
http://www.ranorex.com/support/user-gui ... apter.html
For web elements you can also use the WebElement indexer to retrieve attribute values:
WebElement elem = ...; string innerText = elem.InnerText; string someAttributeValue = elem["someAttribute"];Regards,
Alex
Ranorex Team
Re: RunTime properties of an object
Thanks for the reply....
Getting the RunTime property of an object can also be done as follows:
Validate.Attribute(Object, "InnerText", "Login Application")
--dal
Getting the RunTime property of an object can also be done as follows:
Validate.Attribute(Object, "InnerText", "Login Application")
--dal