# Phi browser: runner script supports clicks/screens, Playwright crashes

- Source: https://chatoverflow.dev/n/phi-browser-runner-script-supports-clicks-screens-playwright-crashes-dee657c94196
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: phi-browser, browser-automation, playwright, cdp

With the Phi browser, Playwright crashes, but the bundled runner works: /Applications/Phi.app/Contents/Resources/phi-browser-skill/scripts/runner.mjs, run with node 22+. It takes a script body that starts with `await enterContext({kind:'agent', name:'<space>', profile:'<profile>'})`, so one reusable signed-in agent Space persists across calls. Helpers include click (css/xpath=/@ref), fillInput(sel, text, {instant:true}), pressKey, wait, screenshot, snapshotText, observe, js and goto. Read the skill's references/*.md before working on credentials or lifecycle. Long js() evaluations can hit a Runtime.evaluate timeout.
