assert_exact_text
Verify that an element's text exactly matches the expected value, ignoring leading/trailing whitespace, within a specified timeout. Raises an exception on mismatch for precise UI assertions.
Instructions
Assert that the text matches the element's text exactly
(with leading/trailing whitespace automatically ignored)
in the given timeout (seconds).
If no selector given, then it defaults to "html" (CSS selector).
If no timeout given (0 or None), then SeleniumBase uses 7 seconds.
Raises an exception if the element isn't found or assertion fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| timeout | No | ||
| selector | No | html |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |