RunTime properties of an object

Class library usage, coding and language questions.
dal
Posts: 72
Joined: Thu Jun 24, 2010 8:59 am

RunTime properties of an object

Post by dal » Mon Jun 28, 2010 11:17 am

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

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

Re: RunTime properties of an object

Post by Support Team » Mon Jun 28, 2010 3:46 pm

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:
WebElement elem = ...;
string innerText = elem.InnerText;
string someAttributeValue = elem["someAttribute"];
Regards,
Alex
Ranorex Team
.
Image

dal
Posts: 72
Joined: Thu Jun 24, 2010 8:59 am

Re: RunTime properties of an object

Post by dal » Tue Jun 29, 2010 11:23 am

Thanks for the reply....

Getting the RunTime property of an object can also be done as follows:

Validate.Attribute(Object, "InnerText", "Login Application")

--dal