Verify text content of elements in your test cases
Field Name | Type | Required | Description |
---|---|---|---|
Locator | string | Yes | CSS selector for the element to check |
Expected Text | text/dropdown | Yes | Text to verify, or selection from variables declared in previous steps |
Use variables Toggle | toggle | No | Use variables from previous steps instead of manual entry |
Assertion Type | toggle | No | Element has text (default) vs Element does not have text |
{{VARIABLE_NAME}}
syntax.welcome-message
Welcome back, John!
.error-container
Network error
.username-display
{{EXPECTED_USERNAME}}
.confirmation-message
generatedOrderId
(from dropdown of assigned variables).validation-errors
Invalid input
data-testid
attributes for better test stability