Dropdown/ List
Last updated
Last updated
Description: This keyword or action instructs Avo Assure Client to fetch the total options in the dropdown.
Keyword | Input Syntax | Output Syntax | Supported Input Formats |
getCount | NA | {Variable}; {Status} | NA |
Find the snippet of the keyword below:
In the above example, after the test case debug, the tool fetches the number of values present in the dropdown and stores it in {cnt}, and the execution status “True”/ “False” will be stored in variable {StatusGC}.
Description: This keyword or action instructs Avo Assure Client to fetch the selected value from the dropdown and save the result in the output variable.
Keyword | Input Syntax | Output Syntax | Supported Input Formats |
getSelected | NA | {Variable}; {Status} | NA |
Note: If the value in the dropdown has space(s) at suffix/prefix, then the user can provide input as “1”, which will trim the spaces.
Find the snippet of the keyword below:
In the above example, after the test case debug, the selected value will be fetched and stored in the variable {sel_txt}. The execution status “True”/ “False” will be stored in variable {Status}.
Description: This keyword or action instructs Avo Assure Client to fetch the dropdown value using the index given in the input and save the result in the output variable.
Keyword | Input Syntax | Output Syntax | Supported Input Formats |
getValueByIndex | <Input Text> | {Variable}; {Status} |
|
Note: Only numerical values are allowed in input. The index starts with “0,” the first value from the list.
Find the snippet of the keyword below:
In the above example, after the test case debug, the value text will be fetched from the provided Index and stored in variable {Index_Val}, and the execution status “True”/ “False” will be stored in variable {Status}.
Description: This keyword or action instructs Avo Assure Client to select the value from the dropdown based on the index.
Keyword | Input Syntax | Output Syntax | Supported Input Formats |
selectValueByIndex | <Index_Value> | (Optional) |
|
Note: Only numerical values are allowed in input. The index starts with “0,” which will be the first value from the dropdown/list.
Find the snippet of the keyword below:
In the above example, after the test case debug, the provided index_Value will be selected in the dropdown/list, and the execution status “True”/ “False” will be stored in variable {SelectIndex}.
Description: This keyword or action instructs Avo Assure Client to select the value from the dropdown based on the text provided in the input.
Keyword | Input Syntax | Output Syntax | Supported Input Formats |
selectValueByText | <Input Text> | (Optional) |
|
Find the snippet of the keyword below:
In the above example, after the test case debug, the provided value will be selected in the dropdown/list, and the execution status “True”/ “False” will be stored in variable {SelectText}.
Description: This keyword or action instructs Avo Assure Client to verify if all the input values the user provided are in the dropdown.
Keyword | Input Syntax | Output Syntax | Supported Input Formats |
verifyAllValues | <InputValue>; <InputValue1>; …; <InputValueN> | (Optional) |
|
Note:
This keyword requires an exact match. Due to browser rendering, the keyword will fail if the value contains trailing/leading spaces.
This keyword will pass only if the input value matches the values in the application under test.
Find the snippet of the keyword below:
In the above example, after the test case debug, the Value(s) will be verified, and the execution status “True”/ “False” will be stored in variable {VerifyAll}.
Description: This keyword or action instructs Avo Assure Client to verify the user-provided input count with the total number of options in the dropdown.
Keyword | Input Syntax | Output Syntax | Supported Input Formats |
verifyCount | <Count Value> | (Optional) | NA |
Find the snippet of the keyword below:
In the above example, after the test case debug, the count value will be verified, and the execution status “True”/ “False” will be stored in variable {VerifyCount}.
Description: This keyword or action instructs Avo Assure Client to compare the user-provided input value with the selected value in the dropdown.
Keyword | Input Syntax | Output Syntax | Supported Input Formats |
VerifySelectedValue | <Value> | (Optional) |
|
Note:
This keyword requires an exact match. Due to browser rendering, the keyword will fail if the value contains trailing/leading spaces.
This keyword will pass only if the input value matches with the value selected in the dropdown/list.
Find the snippet of the keyword below:
In the above example, after the test case debug, the selected value will be verified, and the execution status “True”/ “False” will be stored in variable {VerifySelected}.
Description: This keyword or action instructs Avo Assure Client to verify if the input value(s) provided by the user is/are present in the dropdown.
Keyword | Input Syntax | Output Syntax | Supported Input Formats |
verifyValueExists | <InputValue>; <InputValue1>; …; <InputValueN> | (Optional) |
|
Note:
This keyword requires an exact match. Due to browser rendering, the keyword will fail if the value contains trailing/leading spaces.
This keyword will pass only if the input value matches the values in the application under test.
Find the snippet of the keyword below:
In the above example, after the test case debug, the Value(s) will be verified, and the execution status “True”/ “False” will be stored in variable {VerifyVal}.
Description: This keyword or action instructs Avo Assure Client to fetch all values in the dropdown/list and save the result in the output variable.
Keyword | Input Syntax | Output Syntax | Supported Input Formats |
getAllValues | NA | {Variable}; {Status} | NA |
Note:
This keyword requires an exact match. Due to browser rendering, the keyword will fail if the value contains trailing/leading spaces.
This keyword will pass only if the input value matches the values in the application under test.
User can fetch values using array format (Ex: {all_values[0]};{all_values[1]})
Find the snippet of the keyword below:
In the above example, after the test case debug, the tool fetches the Values present in the dropdown/list and stores them in {all_values}, and the execution status “True”/ “False” will be stored in variable {get}.
Description: This keyword or action instructs Avo Assure Client to select the value from the dropdown based on the exact text provided in the input.
Keyword | Input Syntax | Output Syntax | Supported Input Formats |
selectByAbsoluteValue | <value/option to be selected, exact text> | (Optional) |
|
Note:
This keyword requires an exact match. Due to browser rendering, the keyword will fail if the value contains trailing/leading spaces.
This keyword will pass only if the input value matches the values in the application under test.
This keyword selects the values given in the input. To see the selected values, the tester should use the “getSelected” keyword after selecting the keyword.
Find the snippet of the keyword below:
In the above example, after the test case debug, the provided exact value will be selected in the dropdown/list, and the execution status “True”/ “False” will be stored in variable {SelText}.