assert_text
AssertionsAsserts that an element contains the expected text.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
selector | string | Yes | — | Element selector using type=value format |
expected_value | string | Yes | — | Exact expected text |
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_text",
"params": {
"selector": "css=h1",
"expected_value": "Welcome to Learn RTILA",
"iframe": "",
"timeout": 5000
}
}
Related Scenarios
- View /scenarios/forms/6 · forms
Related Learning Articles
Was this helpful?
Thank you for your feedback!