SelectionPattern

Supported in UFT Developer version 2023 and later

UIA Pro is supported as a technical preview.

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.<UiObject>>>}

Returns the list of items that are selected in the 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>>>

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>