·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

暫無