This method is similar to the GetObject method, but enables you to supply an object for the parent argument (if available) rather than a string.
Supplying an object results in better performance.
|object||An expression evaluating to an object of type ObjectRepositoryUtil.|
|Parent||Required. A Variant value. |
The parent object.
You can specify the parent as an object (IDispatch pointer) or its full path as it appears in the Editor, for example, Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").
If the object you want to retrieve is a top-level object, or you want to retrieve a checkpoint or output value object, specify NULL as the Parent argument value.
|Object||Required. A String value. The object (without it's parent path), as it is written in the Editor, for example, WebEdit("password") or CheckPoint("MyCheckpoint")|
For test objects, you can also use the GetTOProperty and SetTOProperty methods to modify a returned test object's properties before updating the object in the object repository (using UpdateObject.)