OpenText™ Functional Testing for Developers JavaScript SDK

UIAPro. LegacyAccessiblePattern

new LegacyAccessiblePattern()

The UIA Pro Legacy pattern.

Methods

getChildId() → {Promise.<number>}

Retrieves the Microsoft Active Accessibility child identifier for the current object.
Returns:
a promise that is fulfilled with the child id.
Type
Promise.<number>

getDefaultOperation() → {Promise.<string>}

Retrieves the Microsoft Active Accessibility default action for the current object.
Returns:
a promise that is fulfilled with the default action.
Type
Promise.<string>

getDescription() → {Promise.<string>}

Retrieves the Microsoft Active Accessibility description for the current object.
Returns:
a promise that is fulfilled with the description.
Type
Promise.<string>

getHelp() → {Promise.<string>}

Retrieves the Microsoft Active Accessibility help string for the current object.
Returns:
a promise that is fulfilled with the help string.
Type
Promise.<string>

getKeyboardShortcut() → {Promise.<string>}

Retrieves the Microsoft Active Accessibility keyboard shortcut for the current object.
Returns:
a promise that is fulfilled with the keyboard shortcut.
Type
Promise.<string>

getName() → {Promise.<string>}

Retrieves the Microsoft Active Accessibility name for the current object.
Returns:
a promise that is fulfilled with the name.
Type
Promise.<string>

getRole() → {Promise.<string>}

Retrieves the Microsoft Active Accessibility role for the current object.
Returns:
a promise that is fulfilled with the role.
Type
Promise.<string>

getSelectedChildren() → {Promise.<Array.<Promise.<UiObject>>>}

Retrieves the Microsoft Active Accessibility selected children of the current object.
Returns:
a promise that is fulfilled with an array of promises that consist of the selected items of the object.
Type
Promise.<Array.<Promise.<UiObject>>>

getState() → {Promise.<string>}

Retrieves the Microsoft Active Accessibility state for the current object.
Returns:
a promise that is fulfilled with the state.
Type
Promise.<string>

getValue() → {Promise.<string>}

Retrieves the Microsoft Active Accessibility value for the current object.
Returns:
a promise that is fulfilled with the value.
Type
Promise.<string>

performDefaultOperation() → {Promise.<void>}

Performs the default operation on the control.
Returns:
a promise that is fulfilled.
Type
Promise.<void>

select(selectOptions) → {Promise.<void>}

Selects the element.
Parameters:
Name Type Description
selectOptions SelectOptions The flag to use when selecting the element.
Returns:
a promise that is fulfilled.
Type
Promise.<void>

setSecure(value) → {Promise.<void>}

Sets the encrypted Microsoft Active Accessibility value for the current object.
Parameters:
Name Type Description
value string required.
Returns:
a promise that is fulfilled.
Type
Promise.<void>

setValue(value) → {Promise.<void>}

Sets the Microsoft Active Accessibility value for the current object.
Parameters:
Name Type Description
value string required.
Returns:
a promise that is fulfilled.
Type
Promise.<void>