Skip to main content

assert_computed_style

Assertions

Asserts a computed CSS style property on an element.

Parameters

Parameter Type Required Default Description
selector string Yes Element selector using type=value format
property string Yes CSS property name, e.g. display
expected_value string Yes Expected computed style value
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_computed_style",
  "params": {
    "selector": "css=.hidden-block",
    "property": "display",
    "expected_value": "none",
    "iframe": "",
    "timeout": 5000
  }
}
  

Related Scenarios

Related Learning Articles

Was this helpful?