The Assert Text step validates that specific text appears on your page. Whether checking for success messages, error states, or dynamic content updates, this step ensures your text-based feedback works correctly.

Parameters

text - The exact text to find on the page
containing - Partial text match (optional)
selector - Limit search to specific element (optional)
Image: Text assertion configuration would go here

Use Cases

  • Verify success messages after actions
  • Check page headings and labels
  • Validate dynamic content updates
  • Confirm error messages
Image: Common text assertion scenarios would go here

Best Practices

  • Be specific with text matches
  • Use partial matching for dynamic content
  • Consider text that might change between environments