playwright-dev

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Playwright Development Guide

Playwright开发指南

Table of Contents

目录

  • Adding and Modifying APIs — define API docs, implement client/server, add tests
  • MCP Tools and CLI Commands — add MCP tools, CLI commands, config options
  • Vendoring Dependencies — bundle third-party npm packages into playwright-core or playwright
  • 添加和修改API —— 定义API文档、实现客户端/服务端、添加测试
  • MCP工具与CLI命令 —— 添加MCP工具、CLI命令、配置选项
  • 依赖项打包 —— 将第三方npm包打包到playwright-core或playwright中

Build

构建

  • Assume watch is running and everything is up to date.
  • If not, run
    npm run build
    .
  • 假设watch已在运行且所有内容都是最新的。
  • 如果没有,运行
    npm run build

Lint

代码检查

  • Run
    npm run flint
    to lint everything before commit.
  • 提交前运行
    npm run flint
    对所有内容进行代码检查。