safari_react_select_set
Set a value in a react-select v5 dropdown by walking React fiber and invoking onChange directly, bypassing the menu UI. Use when normal clicks fail on portal-rendered or Cloudflare selects.
Instructions
Set a value in a react-select v5 dropdown by walking React fiber to find the Select component and invoking onChange directly — bypasses the menu UI entirely. Use when safari_click on the chevron or option keeps failing (Cloudflare custom token forms after a few rows, portal-rendered selects that intercept synthetic events). Returns JSON {ok, selected} on success, or {ok:false, error, available:[…]} listing up to 30 option labels on miss. Match is by label, value, or case-insensitive label. Either ref or selector required. NOTE: For Permissions-levels combos that are disabled until a Permission is selected, set the Permissions value first — the level combo becomes enabled and its props.options populate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS selector — typically input[name=...] or the .react-select__control container | |
| ref | No | Ref ID from safari_snapshot | |
| value | Yes | Option label (or value) to select — case-insensitive fallback |