StrikekitStrikekit

select

Choose option(s) on a native HTML select

Choose one or more options on a native <select>. Custom combobox widgets use pick / open instead.

Syntax

When I select "<option>" from "<dropdown>"

For <select multiple>, put comma-separated options inside one quoted value. Spaces after commas are trimmed.

Qualifiers

QualifierRoleExample
fromDropdown labelselect "United States" from "Country"

Requirements

ItemContract
Element / control shapeNative <select> only
How the label bindsselect id → data-testid → aria-label → name → label + adjacent select
Qualifiers that change resolvefrom is the select label (match); option text after select is a payload
PlatformWeb
Wrong shape → use insteadCustom combobox → open / pick. Radix / menu role=menuitem → click trigger + item by id

When it fails

  • Timeout / not found — control is not a native <select>, or label missed.
  • Do not use open … and pick on a native select.

See also UI contracts.

Examples

When I select "United States" from "Country"
When I select "Red,Blue,Green" from "Colors"
When I select "Red, Blue" from "Colors"

Notes

  • Option text is a payload — * stays literal.
  • Multi option labels must not contain commas in v1.

On this page