Select
Choose an option in a native <select> element by selector or ref.
pinchtab select e12 itcurl -X POST http://localhost:9867/action \ -H "Content-Type: application/json" \ -d '{"kind":"select","ref":"e12","value":"it"}'
Response
OK CLI Flags
| Flag | Description |
|---|---|
--snap | Output snapshot after select |
--snap-diff | Output snapshot diff after select |
--text | Output page text after select |
--json | Full JSON response |
--tab | Target specific tab |
Option Matching
Matching is forgiving. PinchTab tries these strategies in order:
- exact
<option value="..."> - exact visible text
- case-insensitive visible text
- case-insensitive substring of visible text
All of these can work depending on the page:
pinchtab select e12 ukpinchtab select e12 "United Kingdom"pinchtab select e12 "united kingdom"pinchtab select e12 "Kingdom"
pinchtab select e12 ukpinchtab select e12 "United Kingdom"pinchtab select e12 "united kingdom"pinchtab select e12 "Kingdom"
Prefer the canonical option value or full visible text when disambiguation matters.
Selector lookup is limited to current frame scope (default: main). Use /frame before iframe selects.