跳到正文
TakoAPI
返回技能列表

playwright-browser-automation

由 spiceman161 提供

Web & Frontend Development
4.4k下载量由 clawskills.sh 提供
8星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Browser automation using Playwright API directly.

描述

该技能的功能

Direct Playwright API for browser automation across Chromium, Firefox, and WebKit. Handles navigation, form interaction, data extraction, screenshots, PDF generation, and video recording. No MCP layer required.

Direct API access avoids MCP overhead and gives predictable automation with built-in auto-waiting and retry logic on element interactions.

何时使用

  • Scraping product prices from e-commerce sites
  • Automating login and form submission workflows
  • Taking full-page screenshots for visual regression testing
  • Recording video walkthroughs of web app interactions
  • Extracting table data from paginated web reports

示例工作流

输入

User asks: Extract all product names and prices from a paginated e-commerce site

智能体
  1. 1

    Launch Chromium in headless mode

  2. 2

    Navigate to the target URL and wait for page content to load

  3. 3

    Evaluate the DOM to extract product titles and prices into an array

  4. 4

    Click the next page button and repeat extraction until no further pages exist

  5. 5

    Return collected data as a structured JSON array

输出

JSON array of product names and prices from all paginated pages

安装

clawhub install spiceman161/playwright-browser-automation

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接