Skip to content

Cannot select <select> option by text #185

@aramvr

Description

@aramvr

Describe the bug
When a element has options like: United States The snapshot records only the label (“United States”) instead of the value (“US”). The fill tool then tries to use “United States” as the value, which fails. Puppeteer seems to require the actual value attribute to select the option. To Reproduce Just try on a native element where the value and text are different.

Expected behavior
The fill tool should select the option by value.

Chrome version: 140
Coding agent version: Cursor 1.4.5
Model version: Claude 4.0

Screenshots
If applicable, add screenshots to help explain your problem.

Chat log
N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions