Retrieve the runtime property of an object

Use the GetROProperty method. This method returns the current value of a property for the object in the application.

GetROProperty(Property [, in_PropData])

Property – Property to retrieve from the object.
in_PropData – This parameter is not in use.

Example:
‘ The following example uses the GetROProperty method to retrieve ‘ the title property of a Static object.
title = Browser(“index”).Dialog(“Internet Options”).Static(“You can change”).GetROProperty(“title”)

‘ The following example uses the GetROProperty method to retrieve the ‘ x coordinate of the “Test” window.
x = Window(“Test”).GetROProperty (“x”)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s