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);
ParameterTypeRequiredDescription
selectstringYesCSS selector for the <select> element.
textstringYesVisible 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 with axiom.click(): click the trigger, then click the option.
  • Matching is on the option's visible text, not its value attribute. If the visible text and the underlying value diverge, use the visible text.
  • If no option matches text exactly, the step throws.