Asserts a condition on a computed CSS style on the element. Each alias is its own single-key command — no separateDocumentation Index
Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
condition or negated field. The
positive and negative variants map directly to the table below.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
element | string | No | Natural-language description of the target. Use exactly one of element, css, coords, or x/y. |
css | string | No | CSS selector for the target. Use instead of the description key. |
coords | string | { x, y } | No | Absolute viewport coordinates. Either an x, y string (e.g. 120, 40) or a { x, y } object. |
x | number | string | No | X coordinate. Must be provided together with y. |
y | number | string | No | Y coordinate. Must be provided together with x. |
useSelector | boolean | No | Skip AI resolution and require the cached selector to match exactly. |
force | boolean | No | Force the action even when the element is not actionable. |
DANGEROUS_FORCE_DYNAMIC | boolean | No | Bypass the step cache and resolve the target dynamically every run. |
iframe | string | No | Description of the iframe to scope the action to. |
timeout | number | No | Maximum time in milliseconds to wait for the condition to hold. |
name | string | Yes | Attribute name (for attribute checks) or CSS property name (for style checks). |
value | string | Yes | Value to compare against. Required for every condition except *Exists and *DoesNotExist. |
saveAs | string | No | Name of the variable to write this step’s return value to. |
retries | number | No | Number of times to retry the step on failure before failing the test. |
skipped | boolean | No | Skip this step at execution time. |
comment | string | No | Free-form annotation kept with the step. |
Examples
Notes
Aliases supported by this family:| Alias |
|---|
checkElementStyleExists |
checkElementStyleDoesNotExist |
checkElementStyleContains |
checkElementStyleDoesNotContain |
checkElementStyleEquals |
checkElementStyleDoesNotEqual |
checkElementStyleStartsWith |
checkElementStyleDoesNotStartWith |