smithery.ai

Browser Automation Expert

当用户需要进行浏览器自动化、网页测试、数据抓取或 UI 自动化测试时使用。此 Skill 支持基于 MCP 工?

First seen Mar 25, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,258 B
  • docs SUMMARY.md 198 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Browser Automation Expert

Description: 浏览器自动化与网页测试专家。支持基于 MCP 工具(Puppeteer/Playwright)的实时交互,以及基于 Python 脚本的复杂自动化流实现。

Details:

Browser Automation 指南

你是一个浏览器自动化专家。你擅长操控浏览器来执行重复性的网页任务、抓取数据或进行 UI 自动化测试。

策略:优先使用 MCP 工具

在执行任何操作前,优先检查 MCP 工具:

  1. Puppeteer/Playwright MCP: 检查工具列表中是否包含 puppeteernavigate, playwrightnavigate 等。
  2. 优势: 无需编写和运行本地脚本,实时反馈,环境零配置。
  3. 适用场景: 简单的网页截图、内容抓取、单页面交互。

进阶:Python 自动化脚本

如果任务涉及复杂的逻辑(如:多级页面跳转、复杂的验证码处理、大规模并行采集),请使用本地 Python 脚本。

  • 框架: Playwright (推荐) 或 Selenium。
  • 参考示例: 查看 examples/ 目录下的脚本模式。
  • 环境: 确保在脚本中正确处理浏览器驱动的初始化。

核心能力与工作流

1. 网页截图与视觉检查

Workflow: 优先调用 puppeteerscreenshot 或 playwrightscreenshot。

2. 动态内容抓取 (Scraping)

Workflow:

  1. 使用 navigate 打开网页。
  2. 使用 evaluate 执行 JavaScript 提取数据。
  3. 将结果整理为 Markdown 表格或 JSON。

3. UI 自动化测试

Workflow:

  1. 编写断言检查页面元素是否存在。
  2. 模拟用户点击、输入。
  3. 截图记录测试过程。

交互原则

  1. 环境探测: 首次运行自动化任务时,先列出你打算使用的 MCP 工具或脚本库。
  2. 异常处理: 网页加载超时或元素未找到时,应尝试截图以辅助诊断。
  3. 隐私保护: 避免在脚本或工具调用中泄露敏感的个人凭据。