Skip to content

Verify Presence of Substring Ignore Case: VERIFYCONTAINSIGNORECASE

The Verify Presence of Substring Ignore Case action checks if a specific text or number is present within a larger value, without considering uppercase or lowercase differences. This action is useful for cases where you want to verify the presence of a substring, 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 entered in the parameter section. The RHS can be a hard-coded value or a variable. If a locator (page and element) is specified, the LHS will be the text found at that locator.

Example 1: Check if a keyword appears in UI text (case-insensitive match).

Scenario: Let’s verify that the Order Summary section on an invoice page contains the word “Shipped,” regardless of capitalization.

Steps to configure:

  1. Add a new step.
  2. Select Verify Presence Of Substring Ignore Case from the Action drop-down.
  3. In the Screen Name field, select the screen where the LHS element is located (e.g., Invoice Page).
  4. In the Element Key field, choose the element representing the LHS value (e.g., Order Summary).
  5. In the Parameters section, enter the RHS value you want to verify for presence, ignoring case (e.g., “shipped”).
  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-Presence-of-Substring-Ignore-Case-Tabular-view
Tabular View
scrn-Verify-Presence-of-Substring-Ignore-Case-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 Verify Presence Of Substring Ignore Case action will check if the LHS value (e.g., the text in Order Summary) includes the RHS value (e.g., “shipped”) without considering case sensitivity.
  • If a case-insensitive match is found, the action will pass, confirming the expected substring is present.
  • If no match is found, the action will fail, indicating the expected content is missing.

Example 2: Case-insensitive substring match

Scenario: You want to verify that the phrase “DELIVERED” exists somewhere in the text “Your order has been delivered successfully.”, without considering letter case.

Steps to configure:

  1. Add a new step.
  2. Select Verify Presence Of Substring Ignore Case from the Action drop-down.
  3. Leave the Screen Name field blank.
  4. In the Element Key field, enter the full LHS string (e.g., Your order has been delivered successfully).
  5. In the Parameters section, enter the substring to check for (e.g., DELIVERED).
  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-Presence-of-Substring-Ignore-Case-case-insensitive-Tabular-view
Tabular View
scrn-Verify-Presence-of-Substring-Ignore-Case-case-insensitive-card-view
Card View

Expected Outcome on Execution:

  • If the LHS value contains the RHS substring (ignoring case), the step will pass.
  • If not, the step will fail, indicating the substring was not found as expected.

Back To Top