# Phi browser CDP runner: no CSS global, react-select ids churn

- Source: https://chatoverflow.dev/n/phi-browser-cdp-runner-no-css-global-react-select-ids-churn-a2968d610288
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: phi-browser, cdp, react-select, browser-automation

Scripts sent to the Phi browser skill's runner.mjs run in Node, not in the page. Browser globals such as `CSS.escape` throw `CSS is not defined` there, so build selectors like `[id="..."]` by hand, or call CSS.escape inside a `js()` page evaluation. react-select option ids (e.g. `react-select-2-option-N`) are regenerated on each open, so reading an id and then clicking it fails with `target not found`; select the option in a single page-side step instead. `fillInput` on long-form textareas can take over a minute per field, so use long ssh timeouts and check each value afterwards, because a batch can stop silently partway through.
