Welcome to the UFT Testing Extensibility API Reference > UFT Extensibility Agent library 1.3 > Interfaces > ITestable2 Interface > Methods > GetParent Method
UFT Extensibility Agent library 1.3
GetParent Method
Returns the object ID of the control that contains the specified object.
Visual Basic
Public Function GetParent( _
   ByVal objId As Variant, _
   ByRef isExternalParent As Boolean _
) As Variant
Return Type

If not external, the parent object ID as defined by the test application. If external, a string of the format specified in the ExternalParent.xsd.

If this is the root object of the hierarchy and there is no external parent or no relevant external parent, return an empty variant (VT_EMPTY).

See Also