المهارات browser-automation
🌐

browser-automation

مخاطر متوسطة ⚙️ الأوامر الخارجية🌐 الوصول إلى الشبكة📁 الوصول إلى نظام الملفات🔑 متغيرات البيئة

使用 WebDriver 自動化瀏覽器任務

متاح أيضًا من: sickn33

手動瀏覽器測試和網頁擷取既耗時又容易出錯。本技能提供企業級的瀏覽器自動化功能,使用 WebDriver 協議,可實現可靠的表單填寫、螢幕截圖、效能監控,以及跨 Chrome、Firefox 和 Edge 的多步驟網頁工作流程。

يدعم: Claude Codex Code(CC)
⚠️ 58 ضعيف
1

تنزيل ZIP المهارة

2

رفع في Claude

اذهب إلى Settings → Capabilities → Skills → Upload skill

3

فعّل وابدأ الاستخدام

اختبرها

استخدام "browser-automation". Navigate to https://example.com and find all heading elements on the page.

النتيجة المتوقعة:

  • Page loaded successfully: https://example.com
  • Found 3 heading elements:
  • - H1: Welcome to Example
  • - H2: Our Services
  • - H2: Contact Us

استخدام "browser-automation". Fill out the contact form at https://example.com/contact with name='John Doe', email='john@example.com', and message='Hello World', then submit it.

النتيجة المتوقعة:

  • Navigated to contact form
  • Filled name field: 'John Doe'
  • Filled email field: 'john@example.com'
  • Filled message field: 'Hello World'
  • Clicked submit button
  • Form submitted successfully
  • Confirmation message: 'Thank you for your message!'

استخدام "browser-automation". Check the page load performance of https://example.com by measuring JavaScript execution time and reporting core web vitals.

النتيجة المتوقعة:

  • Page loaded: https://example.com
  • JavaScript execution time: 245ms
  • DOM content loaded: 312ms
  • Page fully loaded: 1.2s
  • Number of resources: 15
  • Total transfer size: 450KB

التدقيق الأمني

مخاطر متوسطة
v1 • 1/23/2026

The static analyzer detected 379 potential issues across documentation and example files. After evaluation, all findings are FALSE_POSITIVES - patterns appear in documentation examples, not executable code. The skill is a legitimate browser automation tool using WebDriver protocol with no malicious intent or exploitable vulnerabilities.

8
الملفات التي تم فحصها
1,990
الأسطر التي تم تحليلها
11
النتائج
1
إجمالي عمليات التدقيق

مشكلات عالية المخاطر (2)

Shell Command Execution Patterns in Documentation
The static analyzer detected Ruby/shell backtick syntax in 298 locations across documentation files. These patterns appear in markdown code blocks within example documentation files.
مشكلات متوسطة المخاطر (3)
Hardcoded URLs in Documentation
The static analyzer detected hardcoded URLs across documentation files. These are legitimate example URLs used in documentation.
System Reconnaissance Patterns
The static analyzer flagged system command usage as 'system reconnaissance' in web scraping examples.
مشكلات منخفضة المخاطر (2)
Python Environment Access
The static analyzer detected Python environment access in setup scripts.
Standard Device File Access
The static analyzer detected device file access in setup scripts.

الأنماط المكتشفة

Critical Heuristic: Code Execution + Network + Credential AccessHeuristic: Filesystem + Credentials + Network
تم تدقيقه بواسطة: claude

درجة الجودة

45
الهندسة المعمارية
100
قابلية الصيانة
87
المحتوى
21
المجتمع
26
الأمان
91
الامتثال للمواصفات

ماذا يمكنك بناءه

自動化端對端測試

品質保證工程師使用此技能來建立可靠的瀏覽器測試,無需人工干預即可驗證不同瀏覽器上的網頁應用程式功能。

大規模網頁資料擷取

資料工程師和研究人員自動化擷取需要 JavaScript 呈現的動態網站,從中提取結構化資料以供分析管線使用。

自動化表單處理

商業使用者自動化重複性的網頁表單提交、資料輸入任務,以及跨多個網頁的工作流程。

جرّب هذه الموجهات

基本瀏覽器導航
Use the browser automation skill to navigate to https://example.com and tell me what the page title is.
表單提交自動化
Go to the login page at https://example.com/login, fill in the username field with 'testuser' and password field with 'password123', then click the submit button and report the result.
螢幕截圖擷取
Navigate to https://example.com/dashboard, wait for the page to fully load (5 seconds), and take a full-page screenshot saved to /tmp/dashboard.png. Report the file path when complete.
多步驟工作流程自動化
Perform the following multi-step workflow: 1) Go to https://example.com/shop, 2) Search for 'wireless headphones', 3) Click on the first product, 4) Add it to cart, 5) Navigate to cart page, 6) Take screenshot of cart contents. Report each step result.

أفضل الممارسات

  • 使用具有超時設定的顯式等待而非固定睡眠延遲,以在不同頁面載入速度下實現可靠的元素偵測。
  • 保持瀏覽器驅動程式與瀏覽器版本匹配,以確保相容性和安全性修補。
  • 將螢幕截圖和下載檔案存放在指定目錄中,並適當清理以避免長期執行自動化時的磁碟空間問題。

تجنب

  • 避免使用沒有備用策略的硬編碼選擇器 - 頁面結構變更將導致自動化失效。
  • 不要跳過網路超時和元素未找到例外的錯誤處理 - 這些在真實世界的網頁自動化中很常見。
  • 避免在生產環境中執行多個瀏覽器執行個體而不使用連接池,以防止資源耗盡。

الأسئلة المتكررة

此技能支援哪些瀏覽器?
此技能透過 WebDriver 協議支援 Chrome、Firefox 和 Edge 瀏覽器。每個瀏覽器都需要在系統上單獨安裝相容的 WebDriver 二進位檔案。
如何為我的瀏覽器安裝 WebDriver?
從官方供應商網站下載適當的 WebDriver(Chrome 的 ChromeDriver、Firefox 的 GeckoDriver 或 Edge 的 EdgeDriver)。將其放置在系統 PATH 中,或在技能設定中配置位置。
此技能可以處理 CAPTCHA 或機器人保護嗎?
不,此技能無法繞過 CAPTCHA、reCAPTCHA 或其他機器人保護機制。這些需要外部服務或人工介入。
如何處理非同步載入的動態內容?
使用具有元素存在或可見性條件的顯式等待,而非固定睡眠計時器。此技能提供的 wait_for_element 函數會輪詢直到元素準備就緒。
如果找不到頁面元素會怎麼樣?
此技能預設會引發 ElementNotFound 錯誤。將操作包裝在 try-catch 區塊中以優雅地處理這些情況,或使用包含超時處理的 wait_for_element 函數。
我可以以無頭模式執行此技能嗎?
可以,在瀏覽器初始化時使用 headless=true 選項配置,以用於伺服器環境或沒有圖形顯示的 CI/CD 管線。

تفاصيل المطور

المؤلف

EmilLindfors

الترخيص

MIT

مرجع

master