TogglePattern

Supported in UFT Developer version 2023 and later

UIA Pro is supported as a technical preview.

UIAPro. TogglePattern

new TogglePattern()

The UIA Pro Toggle pattern.

Methods

getToggleState() → {Promise.<CheckedState>}

Returns the toggle state of the object. Possible values: CheckedState

Returns:

a promise that is fulfilled with the state of the object.
Type
Promise.<CheckedState>

toggle() → {Promise.<void>}

Cycles through the toggle states of an object.

Returns:

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