clawfirm-test
Installation
SKILL.md
Clawfirm UI Testing with browser-agent
⚠️
browser-agent≠agent-browser
browser-agent→ Clawfirm WKWebView,通过 eval server(port 9310/9311)注入 JS,本 skill 使用此工具agent-browser→ Chrome/Chromium via CDP,用于外部网站自动化,不适用于 Clawfirm
环境检查
运行任何测试前,先确认环境:
# 1. 确认 binary 存在
which browser-agent || go install ./cmd/browser-agent/
# 2. 确认 Clawfirm app 正在运行(eval server 在 9310)
curl -s --noproxy localhost -X POST http://localhost:9310/api/eval \
-H 'Content-Type: application/json' \
-d '{"script":"document.title"}' | python3 -m json.tool