Select list
axiom.selectList(select, text) picks an option in a native HTML <select> element by matching on the option's visible text. The same step type as the No-Code Tool's Select list.
Signature
await axiom.selectList(select, text);
| Parameter | Type | Required | Description |
|---|---|---|---|
select | string | Yes | CSS selector for the <select> element. |
text | string | Yes | Visible text of the option to pick (matched case-sensitively against <option> text content). |
Example
await axiom.selectList("select#country", "United Kingdom");
Notes
- Only works on native
<select>elements. Custom-built dropdowns (divs styled as dropdowns, headless-UI listboxes, React-Select, etc.) don't respond to this — drive them withaxiom.click(): click the trigger, then click the option. - Matching is on the option's visible text, not its
valueattribute. If the visible text and the underlying value diverge, use the visible text. - If no option matches
textexactly, the step throws.