OpenText™ Functional Testing for Developers JavaScript SDK

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>