PwTextBox Methods
Enter
Clicks in the textbox (using hotspot of locationImage), selects all and types the pw. The interaction is verified by counting the number of characters based on pwCharImage that were entered. If the number doesn't match the pw, retries are done as configured.
Syntax:
Parameters:
Parameter | Description |
pw | Type: String The password that shall be typed into the textbox. |
Exceptions:
Exception | Condition |
When the TextBox could not be found on the screen. | |
When the pw could not be entered successfully even after the retries. |
GetText
Counts the amount of pw characters in the text box and returns a string with * characters of this length.
Syntax:
Return Value:
A string with * characters of the same length as the pw in the TextBox.
Exceptions:
Exception | Condition |
When the TextBox could not be found on the screen. |
VerifyText
Overload List
Name | Description |
Verifies if the password was entered correctly by counting the number of characters based on pwCharImage that were entered. If not, provides a string with as many * characters as were found in the textbox. | |
Verifies if the password was entered correctly by counting the number of characters based on pwCharImage that were entered. |
VerifyText(String, String)
Verifies if the password was entered correctly by counting the number of characters based on pwCharImage that were entered. If not, provides a string with as many * characters as were found in the textbox.
Syntax:
Parameters:
Parameter | Description |
expectedText | Type: String The expected text. |
actualText | Type: String A string with * characters of the same length as the pw in the TextBox. |
Return Value:
True, if the correct number of characters could be found in the text box, false otherwise.
Exceptions:
Exception | Condition |
When the TextBox could not be found on the screen. |
VerifyText(String)
Verifies if the password was entered correctly by counting the number of characters based on pwCharImage that were entered.
Syntax:
Parameters:
Parameter | Description |
expectedText | Type: String The expected text. |
Return Value:
True, if the correct number of characters could be found in the text box, false otherwise.
Exceptions:
Exception | Condition |
When the TextBox could not be found on the screen. |
Last updated