agentleFS
bettyguobettyguo/browser-skills/skills/searchable-dropdown/SKILL.md

searchable-dropdown

Skill8 starsChanged 7 months agoMITView on GitHub

Selects an option in a searchable / typeahead dropdown (combobox). Types to filter, then clicks the matching option. Common on city pickers, country selectors, package-search dropdowns.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Searchable Dropdown

When to invoke

The page has a role="combobox" widget — typically used when the option list is long (countries, cities, products). The agent provides the desired option in vars.option_text.

Recipe

  1. click selector="[role='combobox'], [aria-haspopup='listbox']"
  2. wait_for_selector selector="[role='listbox']" state=visible timeout=2s
  3. fill selector="[role='combobox'], [role='listbox'] input[type='text']" value="$vars.option_text"
  4. wait_for_selector selector="[role='option']:not([aria-disabled='true'])" state=visible timeout=2s
  5. click selector="[role='option']:not([aria-disabled='true'])"
  6. wait extra=200ms

Success criteria

  • assert combobox_has_value value="$vars.option_text"

When NOT to use

  • Plain <select> elements — use select_option primitive directly.
  • Multi-select comboboxes — v0.1 picks the first match only.
  • Async-loaded options where the listbox doesn't render until the filter API responds. Lengthen the wait_for_selector timeout via vars.option_load_timeout.

Known failures

  • Comboboxes without standard ARIA: Material-UI v4, antd v3, etc. use custom roles. The matcher's marker set covers the common libraries, but old/custom widgets need a fixture.
  • Comboboxes where the input is separate from the listbox: v0.1 fills the visible input; some libraries hide it behind another click. Add an upfront click to expand.
  • Comboboxes that auto-select on first matching keystroke: the recipe's explicit-click step is unnecessary but harmless.

Related skills

  • date-picker-widget — often co-occurs in booking flows
  • fill-multi-step-form — drops down inside form steps

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.