RangeValuePattern

Supported in UFT Developer version 2023 and later

UIA Pro is supported as a technical preview.

UIAPro. RangeValuePattern

new RangeValuePattern()

The UIA Pro RangeValue pattern.

Methods

getLargeChange() → {Promise.<number>}

Returns the control-specific large-change value which is added to or subtracted from the value property when performing large increments or decrements.

Returns:

a promise that is fulfilled with the object's largeChange value.
Type
Promise.<number>

getMaximum() → {Promise.<number>}

Checks which value is the highest in the allowed range.

Returns:

a promise that is fulfilled with the highest in the allowed range.
Type
Promise.<number>

getMinimum() → {Promise.<number>}

Checks which value is the lowest in the allowed range.

Returns:

a promise that is fulfilled with the lowest in the allowed range.
Type
Promise.<number>

getSmallChange() → {Promise.<number>}

Returns the small-change value, unique to the UIA Pro element, which is added to or subtracted from the elements value property when performing large increments or decrements.

Returns:

a promise that is fulfilled with the object's smallChange value.
Type
Promise.<number>

getValue() → {Promise.<number>}

Returns the value of the UIA Pro element.

Returns:

a promise that is fulfilled with the object's value.
Type
Promise.<number>

isReadOnly() → {Promise.<boolean>}

Checks if the value of a UIA Pro element is read-only.

Returns:

a promise that is fulfilled with an indication of whether the object is read-only or not.
Type
Promise.<boolean>

setValue(value) → {Promise.<void>}

Sets the value of the control.

Parameters:

NameTypeDescription
valuestringsets the value in the object.

Returns:

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