Is it possible to check that the specified element does not exist?
  • 29 Aug 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Is it possible to check that the specified element does not exist?

  • Dark
    Light

If the element you want to check does not exist contains a string, you can use "Page Should Not Contain" or "Element Should Not Contain".

"Page Should Not Contain"
will check the entire page to make sure that no specific text is present, and

"Element Should Not Contain"
checks for the presence of a specific string within a specific element.

For example, if you are logged in with an administrator account and you want to see the string ADMIN that indicates that you are an administrator, but you are logged in with a regular user account and you don't want this string to appear on the page at all, you can use "Page Should Not Contain".

If you want to make sure that a particular string does not appear in a particular element, such as in a form or on a menu bar, you can use "Element Should Not Contain".

If you want to make sure that text is not present in an element that does not contain text or is difficult to determine by text, please contact our support team.


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.