AITextObject properties

Object properties can be retrieved from the application using the GetObjectProperty and GetAllProperties methods. You can then use the properties to check the object's location or content.

The AITextObject test object supports the properties listed in the table below.

Property Name

Description

abs_x

The object's absolute x-coordinate (left) relative to the screen (in pixels). 0,0 is always the top-left corner of the (primary) monitor.

Note: When working with AI objects, open the tested application on the primary monitor.

abs_y

The object's absolute y-coordinate (top) relative to the screen (in pixels). 0,0 is always the top-left corner of the (primary) monitor.

Note: When working with AI objects, open the tested application on the primary monitor.

confidenceThe level of certainty with which AI identified this control, in percentage.
Control_classThe type of control that was identified.

height

The object's height (in pixels).

hintAn instruction or example indicating the type of content to enter for the value of a control, for example, a grayed out string inside a text box.

name

The object's name.

textThe text used to identify the control.
value

The text contained in the control.

Relevant for edit boxes, text boxes, and combo boxes.

width

The object's width (in pixels).

x

The object's x-coordinate (left) relative to the frame (in pixels).

y

The object's y-coordinate (top) relative to the frame (in pixels).

See also: