/automating-mac-apps:web-browser-automationfrom automating-mac-apps
Automates macOS web browsers using PyXA, Playwright, Selenium, and Puppeteer for testing, scraping, and workflow automation across Chrome, Edge, Brave, and Arc.
Ships in automating-mac-apps. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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).
| 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.
pip install PyXAreferences/pyxa-integration.mdpip install playwright && playwright installreferences/playwright-automation.mdpip install seleniumreferences/selenium-webdriver.mdnpm install puppeteerreferences/puppeteer-automation.mdComplete workflow examples for common automation scenarios:
Guide: references/workflows.md#workflow-1-multi-browser-tab-management
Guide: references/workflows.md#workflow-2-automated-research-and-data-collection
Guide: references/workflows.md#workflow-3-cross-browser-testing-suite
Guide: references/workflows.md#workflow-4-web-scraping-and-data-extraction
# PyXA approach for Chrome
chrome = PyXA.Application("Google Chrome")
chrome.new_window("https://example.com")
# 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()
# PyXA JavaScript execution
content = tab.execute_javascript("document.body.innerText")
links = tab.execute_javascript("Array.from(document.querySelectorAll('a')).map(a => a.href)")
# PyXA multi-browser control
browsers = [PyXA.Application("Google Chrome"), PyXA.Application("Microsoft Edge")]
for browser in browsers:
browser.new_tab("https://shared-resource.com")
# Playwright auto-waiting
page.fill("#username", "[email protected]")
page.click("text=Submit") # Auto-waits for element
// Puppeteer screenshot
await page.screenshot({ path: 'capture.png', fullPage: true });
await page.pdf({ path: 'page.pdf', format: 'A4' });
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.
references/playwright-automation.md#network-interceptionreferences/selenium-webdriver.md#parallel-testingreferences/puppeteer-automation.md#performance-monitoringreferences/selenium-webdriver.md#browser-contexts-and-pagesAfter implementing browser automation:
references/pyxa-integration.md - macOS-native browser controlreferences/playwright-automation.md - Cross-browser testingreferences/selenium-webdriver.md - Enterprise automationreferences/puppeteer-automation.md - Node.js Chrome automationreferences/workflows.md - Complete automation scenariosWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
16 skills in this plugin
/automating-calendarAutomates macOS Calendar via JXA with AppleScript dictionary discovery. Use when asked to "create calendar events", "automate calendar", "JXA calendar scripting", "EventKit automation", or "PyXA calendar automation". Covers events, calendars, recurrence, time zones, batch operations, and EventKit ObjC bridge./automating-chromeAutomates Google Chrome and Chromium-based browsers via JXA with AppleScript dictionary discovery. Use when asked to "automate Chrome tabs", "control browser with JXA", "Chrome AppleScript automation", "Chromium browser scripting", or "browser tab management". Covers windows, tabs, execute(), tunneling patterns, and permissions./automating-contactsAutomates macOS Contacts via JXA with AppleScript dictionary discovery. Use when asked to "automate contacts", "JXA contacts automation", "macOS address book scripting", "AppleScript contacts", or "Contacts app automation". Covers querying, CRUD, multi-value fields, groups, images, and ObjC bridge fallbacks./automating-excelAutomates Microsoft Excel on macOS via JXA with AppleScript dictionary discovery. Use when asked to "automate Excel spreadsheets", "JXA Excel scripting", "Excel macOS automation", or "bulk Excel data operations". Focuses on workbooks, worksheets, ranges, 2D arrays, performance toggles, and VBA escape hatches./automating-keynoteAutomates Apple Keynote using JXA with AppleScript dictionary discovery. Use when asked to "create Keynote presentations", "automate slide decks", "JXA Keynote scripting", or "generate presentations programmatically". Covers document lifecycle, slides, text, shapes, images, tables, charts, transitions, and UI scripting fallback./automating-mac-appsAutomates macOS apps via Apple Events using AppleScript (discovery), JXA (legacy), and PyXA (modern Python). Use when asked to "automate Mac apps", "write AppleScript", "JXA scripting", "osascript automation", or "PyXA Python automation". Foundation skill for all macOS app automation.Generated from the plugin's indexed repository (spillwavesolutions/automating-mac-apps-plugin) — no native marketplace selected
npx claudepluginhub p/spillwavesolutions-automating-mac-apps-plugins-automating-mac-apps-pluginOther plugins' skills for the same job