Get Value by Index
This is pre-built Action located under the @Custom Element, instructs the Avo Assure to retrieve the selected value from the dropdown or list specified in the input and store the result in the dynamic variable.
Syntax
Input Value: <ObjectType>;<VisibleText(optional)>;<Index>;<IndexValue>;<abs(optional)>
<ObjectType> (Required)
Specify the type of object (e.g., select, Dropdown, list)
<VisibleText> (Optional)
Enter the visible text on the object
<Index> (Required)
Provide the index of the object inside the page
<IndexValue> (Required)
Specify the index of the dropdown option to retrieve its corresponding value from the dropdown or list.
<abs> (Optional)
If the abs is provided, the action is performed with absolute identification using the absolute X path
Note: If the abs argument is specified, then the action will be executed with absolute performance based on the given visible text.
To skip an optional input value, use an extra semicolon (;).
Output Value
<Dynamic Variable> (Required)
This dynamic variable holds the value retrieved from the dropdown at given index
<Dynamic Variable> (Optional)
This dynamic variable holds the action result in True or False
Example
Retrieves a specific value from the given object based on the index value
The Get Value by Index action takes the value from the Input Value column (e.g., select;;0;3) and fetches the element present at the specified index within the object. The result of the fetch operation is stored in the {Get Value} variable, while the execution status is stored in the {Status} variable, with the following possible values:
True – if the value is retrieved successfully.
False – if retrieval fails

Last updated
Was this helpful?