跳到正文
Skillpedia
测试81k · #1583

browser-test

它能做什么

这项技能指导智能体在真实浏览器中测试用户界面,检查流程、文字和页面标题,并把每次运行保存为可重放的记录。适合希望在真实浏览器中检查前端改动的开发者和测试人员。

适用场景

  • ✓当你想在真实浏览器中验证某个用户流程能否正常工作时。
  • ✓当你想建立基准录制,供以后的改动进行比较时。
  • ✓当失败的浏览器测试需要重新运行而无需重写时。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-browser/skills/browser-test/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-browser/skills/browser-test/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在真实浏览器中测试注册流程,检查欢迎文字是否出现,并保存这次运行,方便我重放。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体记录一次会话,执行点击和输入操作,等待元素出现,检查文字和页面细节,拍摄截图,并以通过或失败的结论结束运行。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Browser Test

Automated UI testing. Now backed by a recorded RVF session container instead of an ephemeral run, so every test produces a replayable artifact.

When to use

  • Verifying UI functionality, user flows, or that frontend changes work in a real browser.
  • Producing a baseline session that future regressions can diff against.
  • Re-running a stored test session when CI fails (no need to re-author the test).

Steps

  1. Record the test run by composing browser-record:
    • Allocates an RVF container with --kind browser-session.
    • Begins a ruvector trajectory.
  2. Drive interactions — browser_open, browser_click, browser_fill, browser_type, browser_select. Each action emits a trajectory-step.
  3. Wait for elements / network idle via browser_wait before assertions.
  4. Validate with browser_get-text / browser_get-value / browser_get-title / browser_get-url. Validation outcomes go into findings.md inside the RVF container.
  5. Screenshot before / after key interactions for visual regression. Filenames follow <step-id>.png.
  6. Snapshot the accessibility tree at navigation boundaries.
  7. End the session: trajectory-end --verdict pass|fail, rvf compact, AgentDB index in browser-sessions.
  8. (Optional) Diff against --against <prior-session-id>: invoke browser-screenshot-diff to compare the new run with a baseline.

Navigation

  • browser_back / browser_forward for history navigation
  • browser_reload to refresh the page
  • browser_scroll to scroll to elements or coordinates

What changed from v0.1.0

  • The skill no longer ends with browser_close alone — it ends with the session-end protocol.
  • Selectors discovered during the test land in browser-selectors (host:intent), so the next test can find them by embedding similarity.
  • Validation outputs pass aidefence_is_safe before any LLM-facing summary; injection-flagged content is quarantined to findings.md.
  • The same skill, used in CI, now produces an artifact that /ruflo-browser replay can re-drive.

Tips

  • Use browser_wait before assertions to handle async rendering.
  • For visual regression, save the parent session id and pass --against <id> on the next run.
  • Use browser_eval for custom JavaScript assertions — but redact any returned strings via the aidefence_is_safe gate before logging.
常见问题

测试结果会被保存吗?

会。每次运行都会保存为可重放的录制会话。

它能和之前的运行进行比较吗?

可以。这项技能可以将新运行与之前的会话做视觉差异比较。

它需要安装浏览器吗?

这项技能通过其工具驱动浏览器,因此你的环境中必须可以使用浏览器工具。

详情

作者的原始描述

UI test recipe -- composes browser-record (capture) + browser-replay (verify) so every test produces a replayable RVF artifact, not an ephemeral run

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1583
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能