Перейти к содержанию
Skillpedia
Тестирование14k · #11245

agent-browser

Что он делает

Скилл использует инструмент командной строки agent-browser, чтобы открывать страницы, выполнять действия и проверять, что на них показано. Он нужен тем, кому нужно подтвердить, что сайт работает так, как его видит пользователь.

Когда использовать

  • ✓Когда вы хотите проверить, что веб-страница или админ-экран работает правильно в настоящем браузере.
  • ✓Когда нужны скриншоты как доказательство того, как выглядит страница после действия.
  • ✓Когда нужно подтвердить, что после клика или отправки формы страница показывает ожидаемый результат.

Ссылка на скилл

https://github.com/emdash-cms/emdash/blob/main/skills/agent-browser/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/emdash-cms/emdash/blob/main/skills/agent-browser/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Можешь открыть страницу входа на моём сайте в браузере, войти и сделать скриншот панели управления?”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Агент открывает страницу в именованной сессии браузера, читает её структуру, выполняет действие, затем проверяет новое состояние и ошибки консоли. По ходу он может делать скриншоты.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с GitHub.

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.

Частые вопросы

Заменяет ли он автоматические тесты?

Нет. Если нужен повторяемый регрессионный тест, лучше подходит детерминированный набор тестов.

Как он находит кнопки на странице?

Он читает данные доступности страницы и использует подписи и роли элементов для поиска управляющих элементов.

Может ли он показать ошибки?

Да. В рамках проверки он смотрит ошибки консоли и соответствующее поведение сети.

Подробности

Оригинальное описание автора

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

Популярность

Звёзды на GitHub
14k
Место в рейтинге
#11245
Лицензия
MIT
Обновлён
02.11.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы