Skip to content

Verify Absence of Element: VERIFYNOTPRESENT

The Verify Absence of Element action checks to ensure that a specific element is not visible on the screen. This is useful when an element, like a button, message, or other UI component, should be hidden or removed in certain conditions. The element to be checked is identified by a locator (page and element).

Example: Let’s verify that an Edit button is not visible on a confirmation page to prevent further changes.

Steps to configure:

  1. Add a new step.
  2. Select Verify Absence Of Element from the Action drop-down.
  3. In the Screen Name field, select the screen where the element should be absent (e.g., Confirmation Page).
  4. In the Element Key field, select the element representing the LHS value (e.g., Edit button).
  5. Leave Parameters box blank.
  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-Absence-of-Element-Tabular-View
Tabular View
scrn-Verify-Absence-of-Element-Card-View
Card View

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

Expected Outcome on execution:

  • The Verify Absence Of Element action will verify that the specified element (e.g., Edit button) is not visible on the screen.
  • If the element is absent, the action will pass, confirming it is hidden as expected.
  • If the element is present, the action will fail, indicating that it is visible when it should not be.

Back To Top