Skip to content

Verify Equality of Two Values Ignore Cases: VERIFYEQUALIGNORECASE

The Verify Equality of Two Values Ignore Cases action checks if two text values are equal, ignoring any differences in uppercase or lowercase letters. This action is helpful when text should match regardless of capitalization. The left-hand side (LHS) value is taken from an element on the screen, while the right-hand side (RHS) value is typed into the parameter section. If a locator (page and element) is specified, the LHS will be the text found at that locator.

Example 1: Validating a displayed value against an expected Value.

Scenario: Let’s verify that the Username displayed on a profile page matches the expected username, regardless of case.

Steps to configure:

  1. Add a new step.
  2. Select Verify Equality Of Two Values Ignore Cases from the Action drop-down.
  3. In the Screen Name field, select the screen where the LHS element is located (e.g., Profile Page).
  4. In the Element Key field, select the element representing the LHS value (e.g., Username).
  5. In the Parameters section, enter the RHS value you want to compare (e.g., “user123”).
  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-Equality-of-Two-Values-Ignore-Cases-Tabular-View
Tabular View
Card View

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

Expected Outcome on execution:

  • The Verify Equality Of Two Values Ignore Cases action will check if the LHS value (e.g., the text in Username) matches the RHS value, ignoring case differences.
  • If the values match, the action will pass, allowing the automation to proceed.
  • If they don’t match, the action will fail, indicating a mismatch that may need to be reviewed.

Example 2: Comparing Two Static Strings

Scenario: Suppose you want to validate two string values directly without referencing any UI element in this step. (Ideal for comparing constants or system-generated values)

Steps to Configure:

  1. Add a new step.
  2. Select Verify Equality Of Two Values Ignore Cases from the Action dropdown.
  3. Leave the Screen Name field blank.
  4. In the Element Key field, enter the first string (e.g., SuccessMessage).
  5. In the Parameters section, enter the second string to compare (e.g., successmessage).
  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-Equality-of-Two-Values-Ignore-Cases-static-string-Tabular-View
Tabular View
scrn-Verify-Equality-of-Two-Values-Ignore-Cases-static-string-card-View
Card View

Expected Outcome on Execution:

  • The comparison will succeed since the values match, ignoring the case difference.
  • If they differ apart from case, the action will fail.

Back To Top