assert_html
AssertionsAsserts that an element contains the expected HTML.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
selector | string | Yes | — | Element selector using type=value format |
expected_value | string | Yes | — | Expected inner HTML |
iframe | string | No | | CSS selector for iframe context |
timeout | number | No | 5000 | Maximum wait time in milliseconds |
Usage Example
RTILA X PROJECT JSON
{
"command": "assert_html",
"params": {
"selector": "css=.status-badge",
"expected_value": "<span>Available</span>",
"iframe": "",
"timeout": 5000
}
}
Related Scenarios
- View /scenarios/error-handling/2 · error handling
Related Learning Articles
Was this helpful?
Thank you for your feedback!