Select Multiple Value by Indexes

This Select Multiple Value by Indexes is pre-built Action located under the List captured Element. It instructs the Avo Assure client to select multiple values based on the provided input index values.

Syntax

Input: <Index 1>;<Index2>;<….>

Note: In the above syntax, Index1 starts with 0, which means 0 is considered the first index.

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

 Use case/Example 

Scenario

Consider a scenario where you are testing a job application portal where candidates can select the skills they have from a list. The skills are grouped by programming languages such as ‘C Language,’ ‘Java,’ ‘C++,’ ‘HTML,’ …etc. By default, no skills are selected. The user wants to select multiple skills from the ‘Programming Languages’ list with one step action. The user will provide the indexes of the languages they want to select, and the ‘Select Multiple Values by Indexes’ action will select those specific skills.

Input

As input added = 4; 6

Expected Result

This action needs to select multiple programming languages based on the provided input indexes.

Output

The action selects values based on the 4th and 6th inputs: HTML and php.

Last updated

Was this helpful?