Verify Text Is Not Found on the Page
Use Verify Text Is Not Found on the Page to confirm that a specific text string does not appear anywhere on the page. This verification is helpful to ensure unwanted messages, errors, or obsolete content are absent.
When to Use
- Confirm a warning or error message is not shown after a successful action.
- Verify that deleted items or users no longer appear in lists.
- Ensure outdated promotions or notifications are removed after updates.
Steps to Add 'Verify Text Is Not Found on the Page
While recording, click the Add a Verification Step icon.
Select Verify text is not found on the page.
Enter the exact text string that should not appear on the page.
Optional
Configure the Advanced Settings to fine-tune the text matching behavior.
Click Save to add the verification step to your test scenario.
The verification step is added to the scenario and appears in the Recorder as a new step.
You can view this step in the Features page as part of the recorded scenario.
After running the scenario, you can view the result of this verification step on the Reports page.
Advanced Settings
Use the following options to customize how the text absence is verified:
Note
To use the advanced options, first enable Make it a regular expression. You can then apply one or more of the built-in patterns, or write your own regex for more control.
Setting | Description | Example |
---|---|---|
Make it a regular expression | Enables regex matching by adding / at both ends. | /Error.*timeout/ matches any text starting with Error and ending with timeout anywhere on the page. |
Make case insensitive | Ignores letter case differences during matching. | warning will match Warning, WARNING, or wArNiNg. |
Ignore digits | Ignores any digits when matching the text. | User 123 deleted will match User deleted or User 456 deleted. |
Look for exact match | Requires the text to match exactly with no extra characters. | Session expired matches only that exact phrase, not Session expired message. |