ValuePattern

Supported in UFT Developer version 2023 and later

UIA Pro is supported as a technical preview.

UIAPro. ValuePattern

new ValuePattern()

The UIA Pro Value pattern.

Methods

getValue() → {Promise.<string>}

Returns the value of the UIA Pro element.

Returns:

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

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.
Type
Promise.<boolean>

setSecure(encodedText) → {Promise.<void>}

Sets the encoded value of this object.

Parameters:

NameTypeDescription
encodedTextstringThe encoded text to set to the object.

Returns:

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

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

Sets the value of the object.

Parameters:

NameTypeDescription
valuestringThe value to set.

Returns:

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