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:
Name | Type | Description |
---|---|---|
encodedText |
string | The 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:
Name | Type | Description |
---|---|---|
value |
string | The value to set. |
Returns:
a promise that is fulfilled when the setValue operation ends.
- Type
- Promise.<void>