Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

web-browser-automation网络浏览器自动化

Agent Skill

web-browser-automation 用于处理浏览器自动化、网页检查和页面信息提取,适合在 Codex、Claude、Cursor、Gemini CLI 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

416

周安装

17

GitHub Stars

28

下载量

133
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:web-browser-automation(网络浏览器自动化)
来源仓库:https://github.com/spillwavesolutions/automating-mac-apps-plugin
仓库路径:skills/web-browser-automation
安装命令:
npx skills add https://github.com/spillwavesolutions/automating-mac-apps-plugin --skill web-browser-automation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/spillwavesolutions/automating-mac-apps-plugin --skill web-browser-automation

简介

用于处理浏览器自动化、网页检查和页面信息提取。

  • 适合让 Agent 打开页面、读取网页内容或验证前端流程。
  • 安装命令:npx skills add https://github.com/spillwavesolutions/automating-mac-apps-plugin --skill web-browser-automation。
  • 当前维护状态未知,建议核对仓库活跃度与权限边界后再使用。
  • 使用前建议确认是否会触发联网、命令执行或文件读写操作。

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

- Workflow 1: Multi-Browser Tab Management - Workflow 2: Automated Research and Data Collection - Workflow 3: Cross-Browser Testing Suite - Workflow 4: Web Scraping and Data Extraction

  1. Brief Automation Patterns
  2. Advanced Techniques
  3. Troubleshooting and Validation
  4. Security Considerations
  5. Performance Optimization
  6. 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

# 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", "user@example.com")
page.click("text=Submit")  # Auto-waits for element

Screenshot and Content Capture

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

Playwright Quickstart

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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.45%
按下载量换算50

Claude

33.01%
按下载量换算44

Cursor

18.3%
按下载量换算24

Gemini CLI

8.94%
按下载量换算12

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills