AITextObject Object

This object is provided as a technical preview.

Description

An internal object used to perform operations on text identified by AI in the application.

AI objects are supported in UFT only when the UFT Web Add-in and Mobile add-in are installed and loaded.

IMPORTANT

To retrieve an AITextObject object, use the AIUtil.FindText or AIUtil.FindTextBlock property.

Operations

The sections below list the built-in methods that you can use as operations for the AITextObject object.

Method Click Clicks the text.
Method Highlight Highlights the text in the application.

 

Click Method

Description

Clicks the text.

Syntax

object.Click [x], [y]

Arguments

Parameter Description
x Optional. An integer value.
The x-coordinate of the click. Note that the specified coordinates are relative to the upper left corner of the object.  The default value is the middle of the object (-9999).
y Optional. An integer value.
The y-coordinate of the click. Note that the specified coordinates are relative to the upper left corner of the object.  The default value is the middle of the object (-9999).

Return Type

None

Example

Back to top

 

Highlight Method

Description

Highlights the text in the application.

Syntax

object.Highlight

Return Type

None

Example

Back to top