Welcome to the UFT Testing Extensibility API Reference > UFT Extensibility Agent library 1.3 > Interfaces > IRunTimeObjectSupplier Interface > Methods > GetRunTimeObject Method
UFT Extensibility Agent library 1.3
GetRunTimeObject Method
Description
Returns an IDispatch pointer to the run-time COM object that corresponds to the specified object ID.
Syntax
Visual Basic
Public Function GetRunTimeObject( _
   ByVal objId As Variant _
) As Object
Parameters
objId
Return Type
An IDispatch pointer.
Remarks

Only implement this method if the objects in your application are COM objects (or are represented by COM objects).

To support accessing the native properties and methods of a test object class, you must also define an Object property for the test object class in the testing environment XML.

You define the Object property in an Operation element, as follows:

< Operation Name="Object" PropertyType="Property_Get">
         < ReturnValueType>
                 < Type VariantType="IDispatch"/>
         < /ReturnValueType>
< /Operation>
See Also