VerifyTextboxLength
Last updated
Was this helpful?
Last updated
Was this helpful?
This is pre-built Action located under the Table captured from the AUT Element Name. It instructs the Avo Assure Client to verify the maximum length of the text box in the table cell to the value that is provided in the input field of Avo Assure and save the result (True/False) in the given output variable.
Input: <Row>;<Col>;<Object Type>;<index>;<value>
For above Syntax user need to give the row number and column number to which table cell user wants to verify the length of the textbox, Object type (it could be textbox), index (Element Index of the cell) and the value with which to be verify.
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
On the shopping cart page of an e-commerce website, each product row in the table has a textbox where the user can modify the product name. The developer has set a maximum character length for the product name textbox to prevent users from entering an excessively long name. The "VerifyTextboxLength" Action is used to verify if the maximum length for the input field matches the expected value that is defined by the developer.
The test will use the "VerifyTextboxLength" Action to check if the maximum length of the textbox matches the expected value (50 characters).
5;3;textbox;2;50
The "VerifyTextboxLength" Action needs to verify that the maximum length of the textbox for the "Product Name" matches the developer-defined maximum length (e.g., 50 characters) and store the status in Output Variable.
The VerifyTextboxLength Action is verifying length of the texbox of table cell and store in the {result} output variable as True, which can be utilized for display or other purposes.