Skip to main content

assert_text

Assertions

Asserts 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

Related Learning Articles

Was this helpful?