OpenText™ Functional Testing for Developers JavaScript SDK

AI

AI namespace

Classes

AiObject
AiObjectTO
AIRunSettings
AIUtil

Type Definitions

AiTypes

The list of supported AI classes that can be used to describe AI.AiObject.
Type:
  • Object
Properties:
Name Type Description
bell string
button string
camera string
categories string
chat string
check_box string
check_mark string
calendar string
close string
combo_box string
dot_menu string
down_triangle string
eq_settings string
exit string
filter string
facebook string
favorites string
gear_settings string
hamburger_menu string
help string
home string
info string
input string
instagram string
left_arrow string
left_triangle string
lock string
linkedin string
location string
mail string
minus string
pencil string
phone string
plus string
power string
profile string
radio_button string
right_arrow string
right_triangle string
rss_feed string
search string
share string
shopping_bag string
shopping_cart string
text string
text_block string
text_box string
toggle_button string
tool_settings string
trash string
twitter string
upload string
up_arrow string
up_down string
up_triangle string
youtube string
view string
left string a general type for left_arrow and left_triangle.
right string a general type for right_arrow and right_triangle.
up string a general type for up_arrow and up_triangle.
down string a general type for down_triangle.
field string a general type for input, text_box and combo_box.
toggleable string a general type for check_box, radio_button and toggle_button.
togglable string a general type for check_box, radio_button and toggle_button.

MatchMethod

The match method to use when identifying the AI object by its text.
Type:
Properties:
Name Type Description
ai string Find similar text using AI algorithms.
ignoreCase string Find exactly the specified text while ignoring its case.

PositionalLocator

can be used to uniquely describe an AI.AiObject using the object's ordinal position.
Type:
  • object
Properties:
Name Type Description
direction "fromLeft" | "fromRight" | "fromTop" | "fromBottom" the direction in which to count the ordinal position.
index number Optional. the 0-based index of the AI object, counting in the specified direction.

RelationalLocator

can be used to uniquely describe an AI.AiObject using the object's proximity to another AI.AiObject.
Type:
  • object
Properties:
Name Type Description
relation "withAnchorAbove" | "withAnchorBelow" | "withAnchorOnLeft" | "withAnchorOnRight" the relation of the anchor to the AI object.
anchor object the anchor AI object used to locate the AI Object.