·playwright-patterns
</>

playwright-patterns

在编写 Playwright 自动化代码、构建网络抓取工具或创建 E2E 测试时使用 - 提供选择器策略、等待模式和强大的自动化的最佳实践,以最大限度地减少不稳定

13安装·1热度·@ed3dai

安装

$npx skills add https://github.com/ed3dai/ed3d-plugins --skill playwright-patterns

如何安装 playwright-patterns

通过命令行快速安装 playwright-patterns AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/ed3dai/ed3d-plugins --skill playwright-patterns
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:ed3dai/ed3d-plugins。

SKILL.md

查看原文

Reliable browser automation requires strategic selector choice, proper waiting, and defensive coding. This skill provides patterns that minimize test flakiness and maximize maintainability.

Use user-facing locators first (most resilient), then test IDs, then CSS/XPath as last resort:

Locators are strict by default - operations throw if multiple elements match:

在编写 Playwright 自动化代码、构建网络抓取工具或创建 E2E 测试时使用 - 提供选择器策略、等待模式和强大的自动化的最佳实践,以最大限度地减少不稳定 来源:ed3dai/ed3d-plugins。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/ed3dai/ed3d-plugins --skill playwright-patterns
分类
</>开发工具
认证
收录时间
2026-02-26
更新时间
2026-03-10

Browse more skills from ed3dai/ed3d-plugins

快速解答

什么是 playwright-patterns?

在编写 Playwright 自动化代码、构建网络抓取工具或创建 E2E 测试时使用 - 提供选择器策略、等待模式和强大的自动化的最佳实践,以最大限度地减少不稳定 来源:ed3dai/ed3d-plugins。

如何安装 playwright-patterns?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/ed3dai/ed3d-plugins --skill playwright-patterns 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/ed3dai/ed3d-plugins