·playwright-best-practices
""

playwright-best-practices

suntory-n-water/sui-blog

网络抓取和测试的剧作家自动化最佳实践。在编写或审阅 Playwright 代码时使用,尤其是元素操作(单击、填充、选择)、等待策略(waitForSelector、waitForURL、waitForLoadState)、导航模式和定位器使用。当遇到不稳定的测试、竞争条件或需要指导以避免已弃用的模式(例如 waitForNavigation 或 networkidle)时应用。

2安装·0热度·@suntory-n-water

安装

$npx skills add https://github.com/suntory-n-water/sui-blog --skill playwright-best-practices

SKILL.md

This skill provides guidance on writing reliable, maintainable Playwright automation code based on official best practices. It covers element operations, waiting strategies, navigation patterns, and common anti-patterns to avoid.

Playwright Locators automatically wait and retry until elements are actionable:

| Action | Visible | Stable | Receives Events | Enabled | Editable |

网络抓取和测试的剧作家自动化最佳实践。在编写或审阅 Playwright 代码时使用,尤其是元素操作(单击、填充、选择)、等待策略(waitForSelector、waitForURL、waitForLoadState)、导航模式和定位器使用。当遇到不稳定的测试、竞争条件或需要指导以避免已弃用的模式(例如 waitForNavigation 或 networkidle)时应用。 来源:suntory-n-water/sui-blog。

查看原文

可引用信息

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

安装命令
npx skills add https://github.com/suntory-n-water/sui-blog --skill playwright-best-practices
分类
""沟通写作
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 playwright-best-practices?

网络抓取和测试的剧作家自动化最佳实践。在编写或审阅 Playwright 代码时使用,尤其是元素操作(单击、填充、选择)、等待策略(waitForSelector、waitForURL、waitForLoadState)、导航模式和定位器使用。当遇到不稳定的测试、竞争条件或需要指导以避免已弃用的模式(例如 waitForNavigation 或 networkidle)时应用。 来源:suntory-n-water/sui-blog。

如何安装 playwright-best-practices?

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

这个 Skill 的源码在哪?

https://github.com/suntory-n-water/sui-blog

详情

分类
""沟通写作
来源
skills.sh
收录时间
2026-02-01

相关 Skills

暂无