Get Textbox Length

This is a pre-built Action located under the captured table element. The functionality of this Action in Avo Assure is to retrieve the maximum textbox length present in the specified table cell. The result is stored in the given dynamic variable for further use during test execution.

Syntax

Input Value: <Row>;<Col>;<Object Type>;<Index>

Argument
Description

<Row> (Required)

Provide the row number of the specified table cell.

<Col> (Required)

Provide the column number of the specified table cell.

<Object Type> (Required)

Provide the type of object within the input value field.

<Index> (Required)

Provide the element index of the object within the input value field.

Output Value: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)

Argument
Description

<Dynamic Variable> (Optional)

This dynamic variable stores the maximum length of the textbox.

<Dynamic Variable> (Optional)

This dynamic variable stores the status as True or False.

Example: Retrieving the Maximum Length of a Textbox in a Table Cell

In this example, we explain how to retrieve the maximum character length defined for a textbox located within a specific cell of a captured table.

  • Action: Get Textbox Length

  • Input Value: 2;4;input;1

    • The first argument (2) specifies the row number.

    • The second argument (4) specifies the column number.

    • The third argument (input) specifies the type object of the cell.

    • The fourth argument (1) specifies the index of the object.

  • Output Value: {Length}

    • The maximum character length configured for the textbox (15) is stored in the {Length} dynamic variable.

    • If a second output variable is provided, the action returns the status as True/False:

      • True: If the maximum length is retrieved successfully.

      • False: If the maximum length is not retrieved successfully.

  • Logical Explanation: The Get Textbox Length action reads the details from the Input Value column (2;4;input;1). It identifies the table cell located at row 2 and column 4, locates the textbox object inside that cell, and fetches the maximum character length defined for that textbox. The extracted value (15) is stored in the {Length} variable.

Last updated