Select Value by Text
This is a pre-built Action located under the captured table element. The functionality of this Action in Avo Assure is to select the option based on the text provided in the input for the dropdown or list located within the 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>;<input value>
<Row> (Required)
Provide the row number of the table cell you want to click.
<Col> (Required)
Provide the column number of the table cell you want to click.
<Object Type> (Required)
Provide the type of object inside the cell. Note: Use object type as dropdown or list.
<index> (Required)
Provide the index of the dropdown or list object inside the cell.
<input value> (Required)
Provide the exact value you want to select from the dropdown or list.
Output Value: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
Both dynamic variable stores the status as True or False.
Example: Selecting a Value from a Dropdown in a Specific Table Cell
In this example, we explain how to select a value from a dropdown present inside a particular table cell.
Action: Select Value by Text
Input Value: 2;3;dropdown;1;Casual Leave
The first argument (2) specifies the row number.
The second argument (3) specifies the column number.
The third argument (dropdown) indicates the control type.
The fourth argument (1) specifies the index if required.
The fifth argument (Casual Leave) is the exact text to be selected from the dropdown.
Output Value: {Status}
The result of the selection operation is stored in the {Status} dynamic variable, with the following possible values:
True: If the value is successfully selected from the dropdown.
False: If the value is not successfully selected from the dropdown.
Logical Explanation: The Select Value by Text action reads the details from the Input Value column (2;3;dropdown;1;Casual Leave). It identifies the table cell at row 2 and column 3, opens the dropdown present in that cell, and attempts to select the value (Casual Leave). The final status of this selection (True) is stored in the {Status} variable.

Last updated