Skip to main content

assert_visible

Assertions

Asserts that an element is visible or hidden.

Parameters

Parameter Type Required Default Description
selector string Yes Element selector using type=value format
visible boolean No true Whether the element should be visible
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_visible",
  "params": {
    "selector": "css=.success-message",
    "visible": true,
    "iframe": "",
    "timeout": 5000
  }
}
  

Related Scenarios

Related Learning Articles

Was this helpful?