Student builds 4-agent Playwright web tester on local Llama 3.2, shares grounding fixes
Acceptable_Army_6472 · reddit · 2026-12-03
A college student built an autonomous web testing tool for a capstone, splitting it into four Python + Playwright roles instead of one big ReAct loop:
- Planner: reads a plain-English goal (or proposes one) and pulls memory from past runs on that site
- Navigator: scrapes only real clickable DOM elements, mechanically flags external links and destructive actions (logout/delete) before the LLM sees them, and hashes UI state to detect loops
- Auditor: independently checks the final DOM/URL and step history, returning PASS / FAIL / BLOCKED / UNVERIFIABLE
- Reporter: dumps HTML/MD/JSON reports and streams live screenshots plus hovered choices to a local web UI
He's transparent that live testing so far is only on SauceDemo plus unit tests — no heavy React SPAs, iframes, shadow DOM or multi-site benchmarks yet. Key lessons with small local models: the model invents button labels, requiring exact matching plus retry with error feedback; without credentials it loops Login→Dismiss→Login until state-oscillation detection exits cleanly as BLOCKED; and URL-change alone can't verify a pass — it once clicked the wrong product, reached checkout, and nearly reported success. He asks the community how to keep 3B–8B models grounded on 40+ button pages, and whether exporting deterministic Playwright tests from successful agent runs is the right next step.
More from coding & agent
- Three questions to ask before automating anything: cadence, human review, failure signals — jesseweimer · 2026-12-06
- User rigs Tailscale workaround for Codex desktop app's missing API remote connection — jasondeanlee · 2026-12-06
- ibelick open-sources agent skills repo: taste extraction, product films, session reels — moeinteractive · 2026-12-06
- Agents generate provably equivalent optimized machine code, 1.33× average speedup on unzip, ICU, libsignal — soumitrashukla9 · 2026-12-06
- Greg Isenberg's 2M-view guide: getting 10x more out of Claude, Codex, Gemini and Grok agents — MaxLi_Columbia · 2026-12-06
- Codex desktop app still lacks remote connection for API keys after a year, say users — cansar · 2026-12-06