web-browser-automation
БесплатноБез исполняемых скриптовНе проверенComprehensive macOS browser automation using PyXA, Playwright, Selenium, and Puppeteer for desktop web testing, scraping, and workflow automation. Use when…
от SpillwaveSolutions★ 50 звёзд на GitHubОб этом скилле
macOS Web Browser Automation Guide
Table of Contents
- Overview
- Browser Compatibility Matrix
- PyXA Integration
- Playwright Automation
- Selenium WebDriver
- Puppeteer Node.js
- Comprehensive Automation Workflows
- Brief Automation Patterns
- Advanced Techniques
- Troubleshooting and Validation
- Security Considerations
- Performance Optimization
- 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
| Tool | Primary Use | Key Advantages |
|---|---|---|
| PyXA | macOS-native control | Direct OS integration, Arc spaces |
| Playwright | Cross-browser testing | Auto-waiting, mobile emulation |
| Selenium | Legacy enterprise | Mature ecosystem, wide language support |
| Puppeteer | Headless Chrome | Fast execution, PDF generation |
See references/browser-compatibility-matrix.md for detailed browser support.
Getting Started
- Choose your framework based on your needs (see Tool Selection Guide above)
- Install dependencies for your chosen framework
- Follow framework-specific guides linked below
- 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
# PyXA approach for Chrome
chrome = PyXA.Application("Google Chrome")
chrome.new_window("https://example.com")
Tab Organization and Grouping
# 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
# 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
# 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
# Playwright auto-waiting
page.fill("#username", "[email protected]")
page.click("text=Submit") # Auto-waits for element
Screenshot and Content Capture
// Puppeteer s
Установить web-browser-automation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteВложенные файлы
FAQ
Что делает скилл 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?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл web-browser-automation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic