Specifies the full name of the object selected by the “target glyph” or "Rectangle Selector" component.
|componentPropObj||One of the objects listed in the Applies To section|
The property applies to the following components:
Use the property to obtain the name of the window or control that the user selected with the target glyph () of the TObjectPicker component, or with the Rectangle Selector tool () of the TRectObjectPicker component. Initially, the property value is empty. The property obtains a value after the user chose an object on screen.
The property returns the full name of the selected object in TestComplete terms. For instance, if you selected Notepad’s window, the property will return
Sys.Process("notepad").Window("Notepad", "Untitled - Notepad", 1).Window("Edit", "", 1).
To obtain a reference to the selected object, pass the object’s name to the
Eval (VBScript) or
Evaluate (DelphiScript) function. These functions are provided by the scripting engines. For detailed information about getting an object reference from a name, see the