requireElement function presentation
Last updated: 2026-03-05T20:45:07.036Z
Metrics
LOC: 9
Complexity: 4
Params: 1
Signature
requireElement(step: FlowStep): : Element
Source Code
function requireElement(step: FlowStep): Element {
const el = findElement(step);
if (!el) {
throw new Error(
`Element not found: ${step.selector ?? step.smartSelectors?.[0]?.value ?? "(no selector)"}`,
);
}
return el;
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| findElement | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| handleFill | calls |
| handleClick | calls |
| handleSelect | calls |
| handleCheck | calls |
| handleClear | calls |