Welcome to the UFT Testing Extensibility API Reference > UFT Extensibility Agent library 1.3 > Interfaces > IActiveScreenSupplier Interface > Methods > GetActiveScreen Method
UFT Extensibility Agent library 1.3
GetActiveScreen Method
The level of detail to be captured on the Active Screen. One of: Complete (0), Minimal (1), Empty(2), or Partial(3).

For full descriptions of each level, see the Active Screen pane in Tools > Options in UFT.

The ID of the object which the user clicked or selected. When generating the return xml, set the isActiveElement attribute of the Element representing this object to true.
Description
Returns the description of the active window.
Syntax
Visual Basic
Public Function GetActiveScreen( _
   ByVal level As Long, _
   ByVal objId As Variant _
) As String
Parameters
level
The level of detail to be captured on the Active Screen. One of: Complete (0), Minimal (1), Empty(2), or Partial(3).

For full descriptions of each level, see the Active Screen pane in Tools > Options in UFT.

objId
The ID of the object which the user clicked or selected. When generating the return xml, set the isActiveElement attribute of the Element representing this object to true.
Return Type
The ActiveScreen xml containing the objects in the active window.
See Also