شعار Web Browser Automation

Web Browser Automation

مؤسسة
SpillwaveSolutions
web-browser-automation

Comprehensive macOS browser automation using PyXA, Playwright, Selenium, and Puppeteer for desktop web testing, scraping, and workflow automation. Use when asked to "automate web browsers", "Selenium Chrome automation", "Playwright testing", "Puppeteer scraping", or "cross-browser automation". Supports Chrome, Edge, Brave, Arc browsers.

نظرة عامة

الناشرSpillwaveSolutions
المستودعautomating-mac-apps-plugin
اسم المهارةweb-browser-automation
النجوم
49
التفريعات
4
الملفات المرفقة
5
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 5

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها SpillwaveSolutions على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Web Browser Automation في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/SpillwaveSolutions/automating-mac-apps-plugin/tree/main/plugins/automating-mac-apps-plugin/skills/web-browser-automation
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SpillwaveSolutions/automating-mac-apps-plugin.git /tmp/automating-mac-apps-plugin
mkdir -p .claude/skills
cp -r /tmp/automating-mac-apps-plugin/plugins/automating-mac-apps-plugin/skills/web-browser-automation .claude/skills/web-browser-automation
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Web Browser Automation في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Web Browser Automation تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Web Browser Automation بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

macOS Web Browser Automation Guide

Table of Contents

  1. Overview
  2. Browser Compatibility Matrix
  3. PyXA Integration
  4. Playwright Automation
  5. Selenium WebDriver
  6. Puppeteer Node.js
  7. Comprehensive Automation Workflows
  8. Brief Automation Patterns
  9. Advanced Techniques
  10. Troubleshooting and Validation
  11. Security Considerations
  12. Performance Optimization
  13. Integration Examples

Overview

This guide covers comprehensive web browser automation on macOS desktop, focusing on automation (not testing). We cover four major automation frameworks with practical examples for real-world scenarios.

PyXA Installation: To use PyXA examples in this skill, see the installation instructions in automating-mac-apps skill (PyXA Installation section).

Primary Automation Tools

  • PyXA: macOS-native Python wrapper with direct browser integration
  • Playwright: Cross-platform framework with Python bindings for modern web automation
  • Selenium: Industry-standard automation with ChromeDriver integration
  • Puppeteer: Node.js framework for Chrome/Chromium automation

Tool Selection Guide

ToolPrimary UseKey Advantages
PyXAmacOS-native controlDirect OS integration, Arc spaces
PlaywrightCross-browser testingAuto-waiting, mobile emulation
SeleniumLegacy enterpriseMature ecosystem, wide language support
PuppeteerHeadless ChromeFast execution, PDF generation

See references/browser-compatibility-matrix.md for detailed browser support.

Getting Started

  1. Choose your framework based on your needs (see Tool Selection Guide above)
  2. Install dependencies for your chosen framework
  3. Follow framework-specific guides linked below
  4. Review workflows for common automation patterns

Framework Guides

PyXA Browser Integration

  • Best for: macOS-native browser control with Arc spaces support
  • Installation: pip install PyXA
  • Guide: references/pyxa-integration.md

Playwright Automation

  • Best for: Cross-browser testing with auto-waiting
  • Installation: pip install playwright && playwright install
  • Guide: references/playwright-automation.md

Selenium WebDriver

  • Best for: Legacy enterprise automation
  • Installation: pip install selenium
  • Guide: references/selenium-webdriver.md

Puppeteer Node.js

  • Best for: Headless Chrome with PDF generation
  • Installation: npm install puppeteer
  • Guide: references/puppeteer-automation.md

Automation Workflows

Complete workflow examples for common automation scenarios:

Multi-Browser Tab Management

Guide: references/workflows.md#workflow-1-multi-browser-tab-management

Automated Research and Data Collection

Guide: references/workflows.md#workflow-2-automated-research-and-data-collection

Cross-Browser Testing Suite

Guide: references/workflows.md#workflow-3-cross-browser-testing-suite

Web Scraping and Data Extraction

Guide: references/workflows.md#workflow-4-web-scraping-and-data-extraction

Brief Automation Patterns

Browser Launch and Profile Management

python
# PyXA approach for Chrome
chrome = PyXA.Application("Google Chrome")
chrome.new_window("https://example.com")

Tab Organization and Grouping

python
# PyXA tab filtering
tabs = chrome.windows()[0].tabs()
work_tabs = [tab for tab in tabs if "meeting" in tab.title().lower()]
for tab in work_tabs:
    tab.close()

JavaScript Injection for Content Extraction

python
# PyXA JavaScript execution
content = tab.execute_javascript("document.body.innerText")
links = tab.execute_javascript("Array.from(document.querySelectorAll('a')).map(a => a.href)")

Cross-Browser Synchronization

python
# PyXA multi-browser control
browsers = [PyXA.Application("Google Chrome"), PyXA.Application("Microsoft Edge")]
for browser in browsers:
    browser.new_tab("https://shared-resource.com")

Form Filling and Interaction

python
# Playwright auto-waiting
page.fill("#username", "user@example.com")
page.click("text=Submit")  # Auto-waits for element

Screenshot and Content Capture

javascript
// Puppeteer screenshot
await page.screenshot({ path: 'capture.png', fullPage: true });
await page.pdf({ path: 'page.pdf', format: 'A4' });

Playwright Quickstart

python
from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.launch()
    page = browser.new_page()
    page.goto("https://example.com")
    page.click("text=Get Started")  # Auto-waits for element
    page.fill("#search-input", "automation")
    browser.close()

For advanced Playwright features (contexts, viewports, dynamic content), see references/playwright-automation.md.

Additional Resources

Advanced Techniques

  • Network Interception: references/playwright-automation.md#network-interception
  • Parallel Browser Automation: references/selenium-webdriver.md#parallel-testing
  • Performance Monitoring: references/puppeteer-automation.md#performance-monitoring
  • Browser Context Management: references/selenium-webdriver.md#browser-contexts-and-pages

Validation Checklist

After implementing browser automation:

  • Verify browser launches without errors
  • Confirm page navigation completes successfully
  • Test element selectors locate expected elements
  • Validate extracted data matches page content
  • Check screenshots/PDFs are generated correctly
  • For PyXA: verify macOS permissions are granted

Troubleshooting

  • Element Not Found Errors: Common solutions across frameworks
  • Stale Element References: Handling dynamic content
  • Browser Detection: Avoiding automation detection
  • Network Timeout Issues: Timeout configuration

Security Considerations

  • Credential Management: Secure storage of login credentials
  • Certificate Handling: SSL/TLS certificate validation
  • Sandbox and Isolation: Running automation in isolated environments
  • Data Sanitization: Cleaning extracted data

Performance Optimization

  • Browser Configuration: Disabling unnecessary features
  • Network Optimization: Blocking unwanted resources
  • Parallel Execution: Running tests concurrently
  • Resource Pooling: Managing browser instances efficiently

When Not to Use

  • For mobile browser automation (use Appium or native testing frameworks)
  • For Windows/Linux-only environments (some PyXA features are macOS-only)
  • When CAPTCHA solving is required (use specialized services)
  • For production scraping without respecting robots.txt

What to Load

  • PyXA: references/pyxa-integration.md - macOS-native browser control
  • Playwright: references/playwright-automation.md - Cross-browser testing
  • Selenium: references/selenium-webdriver.md - Enterprise automation
  • Puppeteer: references/puppeteer-automation.md - Node.js Chrome automation
  • Workflows: references/workflows.md - Complete automation scenarios

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Web Browser Automation؟

Comprehensive macOS browser automation using PyXA, Playwright, Selenium, and Puppeteer for desktop web testing, scraping, and workflow automation. Use when asked to "automate web browsers", "Selenium Chrome automation", "Playwright testing", "Puppeteer scraping", or "cross-browser automation". Supports Chrome, Edge, Brave, Arc browsers.

لماذا تستخدم Web Browser Automation على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Web Browser Automation عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Web Browser Automation في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/SpillwaveSolutions/automating-mac-apps-plugin/tree/main/plugins/automating-mac-apps-plugin/skills/web-browser-automation. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Web Browser Automation؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Web Browser Automation؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Web Browser Automation معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Web Browser Automation مجانية؟

نعم. نشرها SpillwaveSolutions على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇