browser_condition
Checks whether an element exists or a variable condition holds, polling until true or timeout, then returns the value and elapsed time.
Instructions
Checks whether an element exists in the page (or whether a variable condition holds); waits for the condition with optional polling (timeoutMs > 0 repeats the check until true or the timeout expires). Returns {value, elapsedMs}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Alternative: variable condition (e.g. {{status}} == ok) | |
| selector | No | Selector of the element to check | |
| timeoutMs | No | If > 0, polls until the condition is true or the timeout expires (default 0 = a single check) | |
| intervalMs | No | Interval between checks in ms (default 300) |