microsoft/playwright-cli

playwright-cli

playwright-cli 自动化浏览器交互、测试网页,并配合现有的 Playwright 测试使用。本页保留快照名次与来源仓库,安装方式、浏览器依赖与版本要求未核对。

  • SKILL.md 已保存
  • 已有中文用途摘要
  • 安装与运行未实测
先判断是否解决你的问题

playwright-cli 是什么?

playwright-cli 自动化浏览器交互、测试网页,并配合现有的 Playwright 测试使用。本页保留快照名次与来源仓库,安装方式、浏览器依赖与版本要求未核对。

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 playwright-cli,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 playwright-cli

请在 Codex 的当前工作环境中安装并检查 playwright-cli 这个 Skill。

项目身份:microsoft/playwright-cli / playwright-cli
来源:https://github.com/microsoft/playwright-cli/blob/c872a33cec77fa03c28fa7c6d1ad99d15d04ce42/skills/playwright-cli/SKILL.md
已定位的源文件:skills/playwright-cli/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-19T19:32:10.677Z
中文使用说明
已有中文用途摘要;具体用法尚待逐项整理
安装与任务测试
本站未执行安装或任务测试
来源复核
已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料

skills/playwright-cli/SKILL.md · 抓取时间 2026-11-19T19:32:10.677Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Automate browser interactions, test web pages and work with Playwright tests.

查看源文件章节 / Source sections
  • 原文:Browser Automation with playwright-cli
  • 快速开始 / Quick start
  • 原文:Commands
  • 原文:Core
  • 原文:Navigation
  • 原文:Keyboard
  • 原文:Mouse
  • 原文:Save as
  • 原文:Tabs
  • 原文:Storage
  • 原文:Emulation
  • 原文:Network
  • 原文:DevTools
  • 原文:WebMCP
  • 原文:Raw output
  • 原文:Open parameters
  • 原文:URLs with `&` on Windows
  • 原文:Snapshots
  • 原文:Targeting elements
  • 原文:Browser Sessions
  • 安装 / Installation
  • 原文:Example: Form submission
  • 原文:Example: Multi-tab workflow
  • 原文:Example: Debugging with DevTools
  • 原文:Example: Interactive session
  • 原文:Attaching screenshots and videos to pull requests
  • 原文:Specific tasks
快速开始 / Quick start

```bash # open new browser playwright-cli open # navigate to a page playwright-cli goto https://playwright.dev # interact with the page using refs from the snapshot playwright-cli click e15 playwright-cli type "page.click" playwright-cli press Enter # take a screenshot (rarely used, as snapshot is more common) playwright-cli screenshot # close the browser playwright-cli close ```

原文:Core

```bash playwright-cli open # open and navigate right away playwright-cli open https://example.com/ playwright-cli goto https://playwright.dev playwright-cli type "search query" playwright-cli click e3 playwright-cli dblclick e7 # --submit presses Enter after filling the element playwright-cli fill e5 "user@example.com" --submit playwright-cli drag e2 e8 # drop files or data onto an element (from outside the page) playwright-cli drop e4 --path=./image.png playwright-cli drop e4 --data="text/plain=hello world" playwright-cli hover e4 playwright-cli select e9 "option-value" playwright-cli upload ./document.pdf playwright-cli check e12 playwright-cli uncheck e12 playwright-cli snapshot # search the snapshot for text or a regexp, returns matching nodes with surrounding context playwright-cli find "Sign in" playwright-cli find --regex "Sign (in|up)" # wrap the regexp in slashes to add flags, e.g. /i for case-insensitive playwright-cli find --regex "/sign (in|up)/i" # save results to a file when a query produces too many matches playwright-cli find "Add" --filename=results.md playwright-cli eval "document.title" playwright-cli eval "el => el.textContent" e5 # get element id, class, or any attribute not visible in the snapshot playwright-cli eval "el => el.id" e5 playwright-cli eval "el => el.getAttribute('data-testid')" e5 playwright-cli dialog-accept playwright-cli dialog-accept "confirmation text" playwright-cli dialog-dismiss playwright-cli resize 1920 1080 playwright-cli close ```

原文:Navigation

```bash playwright-cli go-back playwright-cli go-forward playwright-cli reload ```

原文:Keyboard

```bash playwright-cli press Enter playwright-cli press ArrowDown playwright-cli keydown Shift playwright-cli keyup Shift ```

原文:Mouse

```bash playwright-cli mousemove 150 300 playwright-cli mousedown playwright-cli mousedown right playwright-cli mouseup playwright-cli mouseup right # scroll by <dx> <dy> pixels, negative dy scrolls up # the element under the mouse pointer scrolls, so mousemove over it first playwright-cli mousewheel 0 100 playwright-cli mousewheel 0 -100 ```

原文:Save as

```bash playwright-cli screenshot playwright-cli screenshot e5 playwright-cli screenshot --filename=page.png playwright-cli screenshot --hires playwright-cli pdf --filename=page.pdf ```

文件 SHA256:1c4c34000f6102ee71fe91bf25351a221f7da37f48f2d556e1756f66e17d356f

仓库许可证记录:Apache-2.0;repository-license-recorded-scope-unverified,查看来源。

Skills.sh收录简介 · 2026-07-28

Automate browser interactions, test web pages and work with Playwright tests.

查看历史简介来源

历史收录数据

Skill标识playwright-cli
来源仓库microsoft/playwright-cli
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次221
快照累计安装量100832

历史资料说明

  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源