Get Textbox Length
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 get the maximum text box length defined by the developer of the textbox, which is in the table cell, and save the result in the output variable.
Input: <Row>; <Col>; <Object Type>;<index>
For above Syntax user need to give the row number and column number of which table cell user wants to fetch the length of the text, Object type, and the index (Element Index of the cell).
Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
You are testing an online registration form for a job application system. The form includes a table displaying the applicant's details, and one of the columns contains a "Phone Number" input field (textbox). The developer has defined a maximum length for the phone number field to ensure that the input does not exceed the allowed number of characters.
Your task is to verify that the Phone Number textbox in the second row of the table correctly enforces the maximum length defined by the developer (e.g., 10 characters). This is an important test to ensure that users cannot enter more characters than allowed.
2;5;textbox;1
The "Get Textbox Length" Action needs to retrieve the maximum length of the "Phone Number" textbox in the second row and fifth column of the table and save the result in Output Variable.
The "Get Textbox Length" Action is easily retrieve the maximum length of a textbox located in a table cell and save it in the {result} Output Variable, which can be utilized for display or other purposes.