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 في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك فتح صفحة تسجيل الدخول لموقعي في المتصفح، وتسجيل الدخول، وأخذ لقطة شاشة للوحة التحكم؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يفتح الوكيل الصفحة في جلسة متصفح بعنوان محدد، ويقرأ بنية الصفحة، وينفذ الإجراء، ثم يتحقق من الحالة الجديدة وأي أخطاء في وحدة التحكم. ويمكنه التقاط لقطات شاشة على طول الطريق.

المحتوى التقني (ملف 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
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة