Loading...
Loading...
Compare original and translation side by side
agent-browsermcp__claude-in-chrome__*agent-browseragent-browsermcp__claude-in-chrome__*agent-browsercommand -v agent-browser >/dev/null 2>&1 && echo "Installed" || echo "NOT INSTALLED"npm install -g agent-browser
agent-browser install # Downloads Chromium (~160MB)agent-browsercommand -v agent-browser >/dev/null 2>&1 && echo "已安装" || echo "未安装"npm install -g agent-browser
agent-browser install # 下载Chromium(约160MB)agent-browsercommand -v agent-browser >/dev/null 2>&1 && echo "Ready" || (echo "Installing..." && npm install -g agent-browser && agent-browser install)command -v agent-browser >/dev/null 2>&1 && echo "已就绪" || (echo "正在安装..." && npm install -g agent-browser && agent-browser install)--headed--headedgh pr view [number] --json files -q '.files[].path'git diff --name-only main...HEADgit diff --name-only main...[branch]gh pr view [number] --json files -q '.files[].path'git diff --name-only main...HEADgit diff --name-only main...[branch]| File Pattern | Route(s) |
|---|---|
| |
| |
| Pages using that Stimulus controller |
| Pages rendering that component |
| All pages (test homepage at minimum) |
| Visual regression on key pages |
| Pages using that helper |
| Corresponding routes |
| Pages using those components |
| 文件模式 | 路由 |
|---|---|
| |
| |
| 使用该Stimulus控制器的页面 |
| 渲染该组件的页面 |
| 所有页面(至少测试首页) |
| 关键页面的视觉回归测试 |
| 使用该助手的页面 |
| 对应的路由 |
| 使用这些组件的页面 |
/test-browser 5000/test-browser --port 5000undefined/test-browser 5000/test-browser --port 5000undefined
**Priority 3: package.json scripts**
```bash
**优先级3:package.json脚本**
```bash
**Priority 4: Environment files**
```bash
**优先级4:环境文件**
```bash
**Priority 5: Default fallback**
If none of the above yields a port, default to `3000`.
Store the result in a `PORT` variable for use in all subsequent steps.
```bash
**优先级5:默认回退**
如果以上方式都未找到端口,默认使用`3000`。
将结果存储在`PORT`变量中,供后续步骤使用。
```bash
</detect_port>
</detect_port>agent-browser open http://localhost:${PORT}
agent-browser snapshot -i**Server not running on port ${PORT}**
Please start your development server:
- Rails: `bin/dev` or `rails server`
- Node/Next.js: `npm run dev`
- Custom port: `/test-browser --port <your-port>`
Then run `/test-browser` again.agent-browser open http://localhost:${PORT}
agent-browser snapshot -i**服务器未在端口${PORT}运行**
请启动您的开发服务器:
- Rails:`bin/dev`或`rails server`
- Node/Next.js:`npm run dev`
- 自定义端口:`/test-browser --port <your-port>`
然后重新运行`/test-browser`。agent-browser open "http://localhost:${PORT}/[route]"
agent-browser snapshot -iagent-browser --headed open "http://localhost:${PORT}/[route]"
agent-browser --headed snapshot -iagent-browser snapshot -iagent-browser click @e1 # Use ref from snapshot
agent-browser snapshot -iagent-browser screenshot page-name.png
agent-browser screenshot --full page-name-full.png # Full pageagent-browser open "http://localhost:${PORT}/[route]"
agent-browser snapshot -iagent-browser --headed open "http://localhost:${PORT}/[route]"
agent-browser --headed snapshot -iagent-browser snapshot -iagent-browser click @e1 # 使用快照中的引用
agent-browser snapshot -iagent-browser screenshot page-name.png
agent-browser screenshot --full page-name-full.png # 整页截图| Flow Type | What to Ask |
|---|---|
| OAuth | "Please sign in with [provider] and confirm it works" |
| "Check your inbox for the test email and confirm receipt" | |
| Payments | "Complete a test purchase in sandbox mode" |
| SMS | "Verify you received the SMS code" |
| External APIs | "Confirm the [service] integration is working" |
**Human Verification Needed**
This test touches the [flow type]. Please:
1. [Action to take]
2. [What to verify]
Did it work correctly?
1. Yes - continue testing
2. No - describe the issue| 流程类型 | 询问内容 |
|---|---|
| OAuth | "请使用[服务商]登录并确认功能正常" |
| 邮件 | "请检查收件箱中的测试邮件并确认已收到" |
| 支付 | "请在沙箱模式下完成测试购买" |
| SMS | "请确认您已收到SMS验证码" |
| 外部API | "请确认[服务]集成功能正常" |
**需要人工验证**
本次测试涉及[流程类型]。请:
1. [执行操作]
2. [验证内容]
功能是否正常?
1. 是 - 继续测试
2. 否 - 描述问题agent-browser screenshot error.png**Test Failed: [route]**
Issue: [description]
Console errors: [if any]
How to proceed?
1. Fix now - I'll help debug and fix
2. Create todo - Add to todos/ for later
3. Skip - Continue testing other pages{id}-pending-p1-browser-test-{description}.mdagent-browser screenshot error.png**测试失败:[route]**
问题:[描述]
控制台错误:(如有)
如何继续?
1. 立即修复 - 我会帮助调试和修复
2. 创建待办事项 - 添加到todos/中后续处理
3. 跳过 - 继续测试其他页面{id}-pending-p1-browser-test-{description}.mdundefinedundefined| Route | Status | Notes |
|---|---|---|
| Pass | |
| Pass | |
| Fail | Console error: [msg] |
| Skip | Requires payment credentials |
| 路由 | 状态 | 备注 |
|---|---|---|
| 通过 | |
| 通过 | |
| 失败 | 控制台错误:[消息] |
| 跳过 | 需要支付凭据 |
/dashboard/dashboard005-pending-p1-browser-test-dashboard-error.md005-pending-p1-browser-test-dashboard-error.md
</test_summary>
</test_summary>undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined