Skip to main content

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when navigating websites, interacting with web pages, filling forms, testing web applications, or extracting information.

来源信息

仓库
digi4care/opencode-mastery
最近来源活动
2026年2月21日 09:55
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
8 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
playwright-cli
description
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when navigating websites, interacting with web pages, filling forms, testing web applications, or extracting information.
license
MIT
compatibility
opencode
metadata
{"author":"Microsoft","version":"1.0","source":"https://github.com/microsoft/playwright-cli"}
# Browser Automation with Playwright CLI Automates browser interactions for web testing, form filling, screenshots, and data extraction. ## When to Use - Web testing and automation - Form filling and submission - Screenshot capture - Data extraction from websites - Visual debugging of web applications - End-to-end testing workflows ## Quick Reference ```bash # Open browser playwright-cli open # Navigate playwright-cli goto https://example.com # Interact playwright-cli click e15 playwright-cli type "text" playwright-cli fill e1 "value" # Capture playwright-cli screenshot playwright-cli snapshot playwright-cli console # Network playwright-cli network # Close playwright-cli close ``` ## Core Commands - `open` - Open browser - `goto` - Navigate to URL - `click/type/fill` - Interactions - `snapshot` - Capture DOM state - `screenshot` - Visual capture - `console` - Monitor console logs - `network` - Monitor requests ## Advanced - `tracing-start/tracing-stop` - Performance tracing - `video-start/video-stop` - Video recording - `request-mocking` - API mocking - `session-management` - Multi-browser sessions ## References - references/playwright-cli-ref-test-generation.md - Auto-generate tests - references/playwright-cli-ref-tracing.md - Performance analysis - references/playwright-cli-ref-video-recording.md - Video capture - references/playwright-cli-ref-request-mocking.md - API mocking - references/playwright-cli-ref-session-management.md - Multi-session - references/playwright-cli-ref-storage-state.md - Cookies/localStorage ## Related Skills - systematic-debugging (combine for visual debugging) - test-driven-development (browser-based tests)
在 GitHub 查看