AIOptions Object

Supported in UFT One versions 15.0 and later.

Description

Represents the GUI Testing tab > AI pane of the Options dialog box, which enables you to activate and customize the AI-testing capabilities in UFT One.

For more details about these options, see the UFT One Help Center.

Remarks

You can click the Generate Script button in the General pane of the GUI Testing tab in the Options dialog box to automatically generate an automation script containing the current global testing options, including those represented by the AIOptions object.
 

Public Properties

Public Property Active

Indicates whether to enable AI-based testing capabilities in UFT One.

Syntax

Public Property Active As Boolean

Return Type

Boolean

Default

 UFT One 15.0-15.0.1: false.

 UFT One 15.0.2 and later: true.

Remarks

After modifying this option, you must restart UFT One for the changes to take effect. Add a statement to your automation script to restart UFT One after modifying this option. See the example below for details.

The following properties are supported in UFT One versions 15.0.2 and later:

Public Property AutoScrollDirection

The direction in which to scroll.

Syntax

Public Property AutoScrollDirection As Boolean

Return Type

String

Possible values

Up, Down, Right, Left (not case-sensitive)

Default: Down

Remarks

Relevant if EnableAutoScroll=true.

Public Property AutoScrollMaxScrolls

The maximum number of pages or screens to scroll within a single AI identification.

Syntax

Public Property AutoScrollMaxScrolls As Boolean

Return Type

Number

Default: 2

Remarks

Relevant if EnableAutoScroll=true.

Public Property EnableAutoScroll

Indicates whether to use automatic scrolling when performing AI-based object identification.

Syntax

Public Property EnableAutoScroll As Boolean

Return Type

Boolean

Default: true

Public PropertyEnableVerifyIdentification

 

Supported in UFT One versions 2021 and later.

Indicates whether to verify AI identification before performing the operation in the current test run.

Syntax

Public Property EnableVerifyIdentification As Boolean

Return Type

Boolean

Default: true

Public PropertyEnvsForVerifyIdentification

Supported in UFT One versions 2021 and later.

Specifies the environment on which AI identification is verified before performing the operation in the current test run.

Syntax

Public Property EnvsForVerifyIdentification As String

Return Type

String

Possible Values: "Mobile", "NonMobile", "NonMobile,Mobile"

Public Property IdentificationCacheEnabled

Supported in UFT One versions 2021 and later.

Indicates whether to enable the cache mechanism for AI-based object identification.

Syntax

Public Property IdentificationCacheEnabled As Boolean

Return Type

Boolean

Default: true

Public Property OCRLanguages

Specifies the languages to use for AI-based text recognition. A comma-separated list of the ISO 639-1 language codes.

Supported languages: English (en), French (fr), German (de), Italian (it), Japanese (ja), Russian (ru), Simplified Chinese (zhs), Spanish (es).

Syntax

Public Property OCRLanguages As String

Return Type

String

Default: "en"

Relevant if OCRProvider="AI".

Public Property OCRProvider

Indicates whether to use the UFT One text recognition settings or the default AI OCR engine, and the languages defined in the OCRLanguages property.

Syntax

Public Property OCRProvider As String

Return Type

String

Possible values: "UFT", "AI" (default).

See Also