ExpandCollapsePattern

Supported in UFT Developer version 2023 and later

UIA Pro is supported as a technical preview.

UIAPro. ExpandCollapsePattern

new ExpandCollapsePattern()

The UIA Pro ExpandCollapse pattern.

Methods

collapse() → {Promise.<void>}

Collapses the element.

Returns:

a promise that is fulfilled when the collapse operation ends.
Type
Promise.<void>

expand() → {Promise.<void>}

Expands the element.

Returns:

a promise that is fulfilled when the expand operation ends.
Type
Promise.<void>

getExpandCollapseState() → {Promise.<ExpandCollapseState>}

Retrieves the state of the expander.

Returns:

a promise that is fulfilled with the expanded state.
Type
Promise.<ExpandCollapseState>