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

agent-browser

Skill này làm gì

Skill dùng công cụ dòng lệnh agent-browser để mở trang web, thực hiện hành động và kiểm tra những gì được hiển thị. Skill dành cho người cần xác nhận một trang web hoạt động như người dùng trải nghiệm.

Khi nào nên dùng

  • ✓Khi bạn muốn kiểm tra một trang web hoặc màn hình quản trị hoạt động đúng trong trình duyệt thật.
  • ✓Khi bạn cần ảnh chụp màn hình làm bằng chứng về giao diện sau một hành động.
  • ✓Khi bạn muốn xác nhận trang hiển thị kết quả mong đợi sau một lần nhấp hoặc gửi biểu mẫu.

Liên kết skill

https://github.com/emdash-cms/emdash/blob/main/skills/agent-browser/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/emdash-cms/emdash/blob/main/skills/agent-browser/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

“Bạn có thể mở trang đăng nhập của website tôi trong trình duyệt, đăng nhập, và chụp ảnh bảng điều khiển không?”

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

Cách hoạt động

Agent mở trang trong một phiên trình duyệt có tên, đọc cấu trúc trang, thực hiện hành động, rồi kiểm tra trạng thái mới và mọi lỗi console. Nó có thể chụp ảnh màn hình trong quá trình.

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.

Test interfaces with agent-browser

Use the installed agent-browser CLI for rendered, user-facing verification. Load its version-matched instructions before relying on command syntax:

agent-browser skills get core --full

Use a specialized bundled guide when the target requires one. agent-browser skills list shows the available guides.

Verification loop

  1. Start or identify the target application and record the exact URL and viewport.
  2. Open the page in a named session.
  3. Take an accessibility snapshot and identify controls by role, label, or snapshot reference.
  4. Perform the user action.
  5. Wait for the resulting state, then take a fresh snapshot. References can become stale after navigation or a substantial DOM update.
  6. Verify the observable result, console errors, and relevant network behavior.
  7. Capture screenshots when visual evidence helps establish the result.

For EmDash admin testing, authenticate through the development bypass rather than attempting to automate passkeys:

agent-browser open 'http://localhost:4321/_emdash/api/setup/dev-bypass?redirect=/_emdash/admin'

Use auth/dev-bypass instead when setup is already complete.

Interaction guidance

  • Prefer role and label locators when they express the user-facing control clearly. Use snapshot references for efficient exploration.
  • Re-snapshot after a dialog opens, a route changes, or content is replaced.
  • Wait for a selector or visible state instead of adding a fixed delay unless timing itself is under test.
  • Use a named session for flows that depend on cookies or storage. Close sessions that are no longer needed.
  • Check agent-browser console and agent-browser errors when the UI behaves unexpectedly.
  • Use agent-browser network requests when the result depends on a request or response boundary.

Evidence

Record the path tested, inputs, viewport, expected result, actual result, and any console or request failures. For UI changes, capture before-and-after screenshots of every affected screen.

Save screenshots inside the task workspace with descriptive filenames. Inspect the saved image before reporting success; a completed screenshot command does not prove that the intended state was visible.

Browser exploration does not replace a regression test when stable automated coverage can protect the behavior. Convert a confirmed defect into the narrowest meaningful automated test when the task includes implementation.

Câu hỏi thường gặp

Nó có thay thế các kiểm thử tự động không?

Không. Khi cần một kiểm thử hồi quy lặp lại được, một bộ kiểm thử xác định là lựa chọn tốt hơn.

Nó tìm nút trên trang bằng cách nào?

Nó đọc thông tin accessibility của trang, dùng nhãn và vai trò để tìm các điều khiển.

Nó có hiển thị lỗi không?

Có. Nó kiểm tra lỗi console và hành vi mạng liên quan như một phần của xác minh.

Chi tiết

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

Use the agent-browser CLI to exercise web interfaces, inspect rendered accessibility state, verify interactions, and capture screenshots. Use for browser-based UI testing and evidence collection. Do not use as a substitute for deterministic Playwright coverage when an automated regression test is the requested deliverable.

repo: emdash-cms/emdash

Độ phổ biến

Sao GitHub
14k
Vị trí xếp hạng
#11245
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ự