PickedObjectName Property

Applies to TestComplete 15.69, last modified on November 13, 2024

Specifies the full name of the object selected by the “target glyph” or "Rectangle Selector" component.

Declaration

componentPropObj.PickedObjectName
Read-Only Property String
componentPropObj     One of the objects listed in the Applies To section  

Applies To

The property applies to the following components:

TObjectPicker, TRectObjectPicker

Description

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.

Property Value

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).

Remarks

To obtain a reference to the selected object, pass the object’s name to the eval (JavaScript, JScript, Python, C#Script, C++Script), 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 TObjectPicker or TRectObjectPicker description.

See Also

TObjectPicker Object

Highlight search results