Chuyển đến nội dung
Skillpedia
Kiểm thử81k · #1581

browser-replay

Skill này làm gì

Skill này phát lại một quỹ đạo trình duyệt đã ghi trên cùng một trang hoặc một phiên bản đã thay đổi. Phù hợp với người kiểm thử và lập trình viên muốn xác nhận một luồng vẫn hoạt động sau khi cập nhật.

Khi nào nên dùng

  • ✓Khi bạn muốn kiểm tra lại một luồng giao diện sau khi triển khai.
  • ✓Khi bạn cần tái hiện một lỗi từ một phiên đã ghi trước đó.
  • ✓Khi bạn muốn so sánh hai lần chạy của một luồng để tìm khác biệt.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-browser/skills/browser-replay/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Phát lại phiên thanh toán tuần trước trên trang staging và cho tôi biết nó lỗi ở đâu.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tải các bước đã ghi, mở một trình duyệt mới, lặp lại từng hành động theo thứ tự, và xử lý các thay đổi bộ chọn bằng cách tìm các phần tử tương tự.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Browser Replay

Re-drive a recorded session trajectory. Used for regression testing, deterministic re-runs, and as the verification path that browser-record plus browser-selectors actually produces something replayable.

This skill is the load-bearing assumption of the v0.2.0 architecture. ADR-0001 Verification §4 requires ≥80% replay success across 10 distinct sites of varying drift profiles before the proposal moves from Proposed → Accepted. If you find replay unreliable, capture the failure modes in findings.md and report them up the ADR.

When to use

  • Regression-testing a UI flow after a deploy.
  • Reproducing a bug captured in a prior session.
  • Comparing two runs of the same flow for browser-screenshot-diff.
  • Forking a session (/ruflo-browser fork) and replaying the parent before mutating.

Steps

  1. Locate the source session:
    npx -y ruvector@0.2.27 rvf status <session-id>.rvf
    
  2. Load the trajectory:
    Read .../trajectory.ndjson
    
    Each line is {ts, action, args, selector, result}.
  3. Open a fresh browser via mcp__plugin_ruflo-core_ruflo__browser_open (target URL = original or --url override).
  4. For each trajectory step, dispatch the matching MCP tool (browser_click, browser_fill, browser_eval, etc.) with the recorded args.
  5. On selector miss, do not fail immediately — query the browser-selectors namespace for an embedding-similar selector for the same <host>:<intent> and retry once:
    npx -y @claude-flow/cli@latest memory search --namespace browser-selectors \
      --query "<host> <intent>" --limit 5
    
  6. Record a new trajectory for the replay run (allocate a fresh RVF container, lineage-tracked via rvf derive).
  7. Verdict: tally matched-step / total-step ratio. Default tolerance threshold is 0.85 (configurable via --tolerance). Verdict goes into findings.md.

Caveats

  • Browserbase explicitly does not offer replay (rrweb session replay was deprecated). We're betting on selector-embedding recovery; expect noise on heavily drifted sites.
  • Network nondeterminism (timing, content variation) can produce false-fail verdicts. Use --mutate to inject expected variation or pin to a fixture.
  • For visual diff, chain into browser-screenshot-diff against the parent session id.
  • If selector recovery requires more than one retry per step, log it. That's the signal that the site needs a re-record, not a replay.
Câu hỏi thường gặp

Nếu một bộ chọn không còn khớp thì sao?

Skill nói nó không dừng ngay, mà thử phục hồi bằng các phần tử tương tự.

Tôi có thể phát lại trên một URL đã thay đổi không?

Có. Skill cho phép ghi đè URL để phát lại trên một biến thể.

Phát lại có đáng tin không?

Skill lưu ý cách tiếp cận phát lại vẫn đang được kiểm chứng, nên hãy ghi lại các trường hợp lỗi bạn gặp.

Chi tiết

Mô tả gốc của tác giả

Replay a recorded session trajectory against the same URL or a mutated variant; uses browser-selectors embedding similarity to recover from DOM drift

repo: ruvnet/ruflo

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1581
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự