Verify Text Is Found on the Page
The Verify Text Is Found on the Page step checks if a specific text string appears anywhere in the visible content of the page during test execution. This assertion verifies that users see the expected text, ensuring the page displays the right messages, labels, or headings.
When To Use
Use this verification in scenarios such as:
- Confirming that a welcome message appears after logging in
- Validating that a confirmation message is displayed after submitting a form
- Checking if a page title, section header, or label is visible
- Verifying the presence of a banner, alert, or notice (e.g., maintenance notice)
Steps to Add "Verify Text Is Found on the Page"
While recording, click the Add a Verification Step icon.
Select Verify text is found on the page.
A text selection box appears. You can:
- Click directly on the text in the browser, or
- Manually enter the expected text string
Optional
Open Advanced Settings to adjust how the text is matched on the page.
To verify multiple texts in a row, select Save and add another.
Otherwise, click Save to finish.
The verification step now appears in the Recorder as a new step:
You can also review it in the Features page as part of the recorded scenario:
Once the test is executed, the results appear in the Reports page:
Advanced Settings
Fine-tune how your text is matched using Advanced Settings.
Note
Enable Make it a regular expression to unlock advanced pattern-matching options. You can then apply built-in options like case-insensitivity or digit ignoring, or write your own regex for full control.
Setting | What it does | Example |
---|---|---|
Make it a regular expression | Uses regex syntax for flexible text matching. | /Accessory.*Store/ matches AccessoryStore, Accessory Store, or Accessory Mega Store |
Make case insensitive | Matches text regardless of case. | accessorystore matches AccessoryStore, ACCESSORYSTORE, and AccessoryStore |
Ignore digits | Skips numbers when evaluating text matches. | Model 123 matches Model, Model 456, or Model ABC |
Look for exact match | Requires an exact string match without extra text. | AccessoryStore matches only AccessoryStore, not AccessoryStore Sale or The AccessoryStore |
Best Practices
- Use this for user-facing texts like headings, messages, or alerts.
- Combine with waits to ensure the text appears after async actions (e.g., API calls).
- Use regex when content changes dynamically but follows a pattern (e.g., order IDs).
- Prefer exact match for fixed UI labels to avoid false positives.