OpenText™ Functional Testing for Developers JavaScript SDK

UIAPro. SelectionPattern

new SelectionPattern()

The UIA Pro Selection pattern used for selection container controls such as list boxes and combo boxes.

Methods

canSelectMultipleItems() → {Promise.<boolean>}

Indicates whether multiple items in the container can be selected at once.
Returns:
a promise that is fulfilled when the select operation ends.
Type
Promise.<boolean>

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

Retrieves all the selected items from the container. Note: This method is only supported when you enable the legacy UIA Pro Add-in.
Returns:
a promise that is fulfilled with an array of promises that consist of the selected items of the object.
Type
Promise.<Array.<Promise.<Object>>>

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

Retrieves all the selected items from the container. Note: This method is not supported when you enable the legacy UIA Pro Add-in.
Returns:
a promise that is fulfilled with an array of promisses that consist of UIA Pro objects representing the selected items in the object.
Type
Promise.<Array.<UiObject>>

isSelectionRequired() → {Promise.<boolean>}

Gets a value that specifies whether the container requires at least one child item to be selected.
Returns:
a promise that is fulfilled when the select operation ends.
Type
Promise.<boolean>