RunTime properties of an object : Automation API

RunTime properties of an object

Class library usage, coding and language questions.

RunTime properties of an object

Postby dal » Mon Jun 28, 2010 12:17 pm

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
dal
 
Posts: 72
Joined: Thu Jun 24, 2010 9:59 am

Re: RunTime properties of an object

Postby Support Team » Mon Jun 28, 2010 4: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
User avatar
Support Team
Site Admin
 
Posts: 4289
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: RunTime properties of an object

Postby dal » Tue Jun 29, 2010 12:23 pm

Thanks for the reply....

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

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

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


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests