Skip to main content

assert_html

Assertions

Asserts 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

Related Learning Articles

Was this helpful?