Dropdown Operations

Keyword: GETCOUNT

Description: This keyword or action instructs ICE to fetch the total number of options present 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, ICE will fetch the count of values present in the dropdown “MM01_Dropdown_1” and stores the value in {GC} and if output variable is provided for execution status “True”/ “False” will be stored in it.

Keyword: GETSELECTED

Description: This keyword or action instructs ICE 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

Find the snippet of the keyword below:

In the above example after the test case debug, ICE will fetch the selected value of the dropdown “MM01_Dropdown_1” and stores the value in {GS}.

Keyword: GETVALUEBYINDEX

Description: This keyword or action instructs ICE to fetch the dropdown value using index given in the input and save the result in the output variable.

Keyword

Input Syntax

Output Syntax

Supported Input Formats

getValueByIndex

<Input Index>

{Variable}; {Status}

  • Text

  • Static Values

  • Dynamic Variables

Note: Only numerical values are allowed in the input. The index starts with “0” which will be 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 i.e 0 and stored in variable {Index_Val} and the execution status “True”/ “False” will be stored in variable {Status}.

Keyword: SELECTVALUEBYTEXT

Description: This keyword or action instructs ICE to select the input option in the dropdown and save the result in the output variable.

Keyword

Input Syntax

Output Syntax

Supported Input Formats

SelectValueByText

<Value/option to be selected>

(Optional)

  • Text

  • Static Values

  • Dynamic Variables

Find the snippet of the keyword below:

In the above example, after the test case debug, ICE will select “Mechanical engineering” from the dropdown “MM01_Dropdown_1” and if the output variable is provided for execution status, “True”/ ”False” will be stored in it.

Keyword: SELECTVALUEBYINDEX

Description: This keyword or action instructs ICE to select the value from the dropdown according to the index for the list specified in the input.

Keyword

Input Syntax

Output Syntax

Supported Input Formats

SelectValueByIndex

<Input Index>

(Optional)

  • Text

  • Static Values

  • Dynamic Variables

Find the snippet of the keyword below:

In the above example, after the test case debug, ICE will select the value with index 0 in the dropdown. If output variable is provided for execution status, “True”/ “False” will be stored in it

Keyword: VERIFYALLVALUES

Description: This keyword or action instructs ICE to verify if all the input values provided by the user are present in the dropdown.

Keyword

Input Syntax

Output Syntax

Supported Input Formats

VerifyAllValues

<Value1>; <Value2>; <Value3>…<ValueN>

(Optional)

  • Text

  • Static Values

  • Dynamic Variables

Find the snippet of the keyword below:

In the above example, after the test case debug, ICE will compare “Chemical industry”, “Mechanical engineering”, “IS Utilities”, “Pharmaceuticals”, “Plant engine/construction”, “Retail” from the dropdown “MM01_Dropdown_1”. If the output variable is provided for execution status, “True”/ ”False” will be stored in it.

Keyword: VERIFYCOUNT

Description: This keyword or action instructs ICE to verify the user-provided input count with the total number of options present in the dropdown.

Keyword

Input Syntax

Output Syntax

Supported Input Formats

VerifyCount

<Value to be verified>

(Optional)

  • Text

  • Static Values

  • Dynamic Variables

Find the snippet of the keyword below:

In the above example, after the test case debug, ICE will compare the count of values is 7 in the dropdown “MM01_Dropdown_1” and if output variable is provided for execution status, “True”/ ”False” will be stored in it.

Keyword: VERIFYSELECTEDVALUE

Description: This keyword or action instructs ICE to compare the user-provided input value with the selected value in the dropdown.

Keyword

Input Syntax

Output Syntax

Supported Input Formats

VerifySelectedValue

<Value to be verified>

(Optional)

  • Text

  • Static Values

  • Dynamic Variables

Find the snippet of the keyword below:

In the above example, after the test case debug, ICE will compare the value selected from the dropdown “MM01_Dropdown_1” with input “Mechanical engineering” and if the output variable is provided for execution status, “True”/ ”False” will be stored in it.

Keyword: VERIFYVALUESEXISTS

Description: This keyword or action instructs ICE to verify if the user-provided input value(s) is/are present in the dropdown.

Keyword

Input Syntax

Output Syntax

Supported Input Formats

VerifyValuesExists

<Value1>; <Value2>; … ;<ValueN>

(Optional)

  • Text

  • Static Values

  • Dynamic Variables

Find the snippet of the keyword below:

In the above example, after the test case debug, ICE will verify the values “Retail” and “IS Utilities” values exists in the dropdown “MM01_Dropdown_1” and if the output variable is provided for execution status, “True”/ ”False” will be stored in it.

Keyword: SELECTKEYBYTEXT

Description: This keyword or action instructs ICE to select the key by the specified text in the dropdown and save the result in the output variable.

Keyword

Input Syntax

Output Syntax

Supported Input Formats

SelectKeyByText

<Input Text>

(Optional)

  • Text

  • Static Values

  • Dynamic Variables

Find the snippet of the keyword below:

In the above example, after the test case debug, ICE will select the key “VLS1” present in the dropdown “RV60A-FKART_select”. If the output variable is provided for execution status, “True”/ ”False” will be stored in it.

Keyword: GETKEYBYINDEX

Description: This keyword or action instructs ICE to fetch the key in the dropdown and save the result in the output variable.

Keyword

Input Syntax

Output Syntax

Supported Input Formats

GetKeyByIndex

<Index>

{Variable}; {Status}

  • Text

  • Static Values

  • Dynamic Variables

Find the snippet of the keyword below:

In the above example, after the test case debug, ICE will fetch the key having index 2 in the dropdown and store it in variable {Key}. If the output variable is provided for execution status, “True”/ ”False” will be stored in it.

Keyword: GETALLKEYVALUEPAIRS

Description: This keyword or action instructs ICE to fetch all the key-value pairs in the dropdown and save the result in the output variable.

Keyword

Input Syntax

Output Syntax

Supported Input Formats

GetAllKeyValuePairs

NA

{Variable}; {Status}

  • Text

  • Static Values

  • Dynamic Variables

Find the snippet of the keyword below:

In the above example, after the test case debug, ICE will fetch all the key-value pairs present in the dropdown and store them in variable {KeyValuePair}. If the output variable is provided for execution status, “True”/ ”False” will be stored in it.

Last updated