press_key ArrowDown/Enter does not change a focused native select on macOS

Open
#3,033 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
macos, typescript
Domain
tooling

Research direction

The payload names no source files or tests. Start by reproducing on macOS against the latest release: load a document with a two-option select, focus it, send ArrowDown then Enter via press_key, and read selectedIndex before and after. Done means either the selection changes or the unsupported keyboard delivery is reported. Read #2199 first, since it covers related input delivery.

Written by the indexing model from the issue text.

Description

confirmed p3

Observed with Chrome DevTools MCP / chrome-devtools-axi on macOS. A focused, enabled native HTML select kept its selected option after ArrowUp, Enter and Tab; Space, Home, Enter also left it unchanged. fill selected the other option successfully. Native character typeahead after Tab focused the chooser also selected the other option.

The parent encounter isolated this outside the application on an otherwise empty document containing a two-option native select: it stayed at A after trusted, unprevented ArrowDown/Enter events. A plain textarea also failed Meta+A select-all. This rules out the application's navigation handler, but no CDP/Chrome cause was established. The exact MCP/Chrome versions were not retained. Workaround: use fill for selection, or character typeahead where it is the interaction being observed.

Suggested minimal reproducer: on macOS, load a document with <select><option>A</option><option>B</option></select>, focus it, send ArrowDown then Enter with press_key, and read selectedIndex before/after. This sketch has not been replayed against the latest release in this triage. Expected: native selection changes, or unsupported keyboard delivery is reported. #2199 is related input delivery, but our observation includes trusted events and working typeahead, not total input loss.

Dominant language
TypeScript
Stars
59.8k
Forks
4.8k
Avg merge
2d 10h
Merged PRs (30d)
162

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ChromeDevTools/chrome-devtools-mcp

All issues in ChromeDevTools/chrome-devtools-mcp

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.