LazyBoy2/tools/playwright/README.md

22 lines
546 B
Markdown
Raw Normal View History

# GrokBoy Playwright helper (optional)
Thin Node script used by Rust `browser_*` tools.
## Install
```bash
cd tools/playwright
npm install
npx playwright install chromium
```
## Protocol
- **JSONL daemon** (default): one JSON request per stdin line → one JSON response on stdout.
- **One-shot**: `node browser_helper.mjs --cmd '{"op":"ping"}'`
- **Self-test** (no Chromium): `npm run self-test`
Ops: `ping`, `navigate`, `snapshot`/`dom`, `click`, `type`, `eval`, `close`, `status`.
Prefer CSS selector or `role`+`name` over screenshots.