Skip to content

Verify Selected Dropdown Value Not Equals Parameter: VERIFYNOTSELECTED

The Verify Selected Dropdown Value Not Equals Parameter action checks if the currently selected option in a dropdown does not match a specified value. This action is useful when you need to confirm that a dropdown’s selected option is different from an expected value. The left-hand side (LHS) value is the selected dropdown item retrieved from an element on the screen, while the right-hand side (RHS) value is entered in the parameter section. The RHS can be a hard-coded value or a variable.

Example: Let’s verify that the selected country in a Country dropdown on a registration form is not set to “Canada.”

Steps to configure:

  1. Add a new step.
  2. Select Verify Selected Dropdown Value Not Equals Parameter from the Action drop-down.
  3. In the Screen Name field, select the screen where the dropdown is located (e.g., Registration Form).
  4. In the Element Key field, select the dropdown element representing the LHS value (e.g., Country).
  5. In the Parameters section, enter the RHS value you want to verify is not selected (e.g., “United States”).
  6. Click Save.

Note: While the steps for adding an action command are identical in both views, the display of the steps changes:

scrn-Verify-Selected-Dropdown-Value-Not-Equals-Parameter-Tabular-View
Tabular View
scrn-Verify-Selected-Dropdown-Value-Not-Equals-Parameter-Card-View
Card View

Note: Ensure that the Screen Name and Element Key are set up before using this action.

Expected Outcome on execution:

  • The action will check if the selected value in the dropdown (LHS value) does not match the specified RHS value (e.g., “United States”).
  • If the values are different, the action will pass, confirming that the dropdown selection is correct.
  • If the values match, the action will fail, indicating that the undesired value is selected.

Back To Top