mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2026-03-17 10:43:09 +00:00
chore: mark v0.0.66
This commit is contained in:
@@ -32,7 +32,7 @@ playwright-cli --help
|
||||
Claude Code, GitHub Copilot and others will use the locally installed skills.
|
||||
|
||||
```bash
|
||||
playwright-cli install-skills
|
||||
playwright-cli install --skills
|
||||
```
|
||||
|
||||
### Skills-less operation
|
||||
@@ -64,33 +64,6 @@ playwright-cli check e35
|
||||
playwright-cli screenshot
|
||||
```
|
||||
|
||||
### Skills-less operation
|
||||
|
||||
Point your agent at the CLI and let it cook. It'll read the skill off `playwright-cli --help` on its own:
|
||||
|
||||
```
|
||||
Test the "add todo" flow on https://demo.playwright.dev/todomvc using playwright-cli.
|
||||
Check playwright-cli --help for available commands.
|
||||
```
|
||||
|
||||
### Installing skills
|
||||
|
||||
Claude Code, GitHub copilot and others will let you install the Playwright skills into the agentic loop.
|
||||
|
||||
#### plugin (recommended)
|
||||
```bash
|
||||
/plugin marketplace add microsoft/playwright-cli
|
||||
/plugin install playwright-cli
|
||||
```
|
||||
|
||||
#### manual
|
||||
|
||||
```bash
|
||||
mkdir -p .claude/skills/playwright-cli
|
||||
curl -o .claude/skills/playwright-cli/SKILL.md \
|
||||
https://raw.githubusercontent.com/microsoft/playwright-cli/main/skills/playwright-cli/SKILL.md
|
||||
```
|
||||
|
||||
## Headed operation
|
||||
|
||||
Playwright CLI is headless by default. If you'd like to see the browser, pass `--headed` to `open`:
|
||||
@@ -137,7 +110,8 @@ playwright-cli kill-all # forcefully kill all browser processes
|
||||
### Core
|
||||
|
||||
```bash
|
||||
playwright-cli open <url> # open url
|
||||
playwright-cli open [url] # open browser, optionally navigate to url
|
||||
playwright-cli goto <url> # navigate to a url
|
||||
playwright-cli close # close the page
|
||||
playwright-cli type <text> # type text into editable element
|
||||
playwright-cli click <ref> [button] # perform click on a web page
|
||||
@@ -251,8 +225,8 @@ playwright-cli video-stop [filename] # stop video recording
|
||||
### Install
|
||||
|
||||
```bash
|
||||
playwright-cli install --skills # install skills
|
||||
playwright-cli install-browser # install browser
|
||||
playwright-cli install-skills # install skills
|
||||
```
|
||||
|
||||
### Configuration
|
||||
@@ -479,3 +453,15 @@ Playwright CLI will load config from `playwright-cli.json` by default so that yo
|
||||
| `PLAYWRIGHT_MCP_USER_DATA_DIR` path to the user data directory. If not specified, a temporary directory will be created. |
|
||||
| `PLAYWRIGHT_MCP_VIEWPORT_SIZE` specify browser viewport size in pixels, for example "1280x720" |
|
||||
</details>
|
||||
|
||||
## Specific tasks
|
||||
|
||||
The installed skill includes detailed reference guides for common tasks:
|
||||
|
||||
* **Request mocking** — intercept and mock network requests
|
||||
* **Running Playwright code** — execute arbitrary Playwright scripts
|
||||
* **Browser session management** — manage multiple browser sessions
|
||||
* **Storage state (cookies, localStorage)** — persist and restore browser state
|
||||
* **Test generation** — generate Playwright tests from interactions
|
||||
* **Tracing** — record and inspect execution traces
|
||||
* **Video recording** — capture browser session videos
|
||||
|
||||
Reference in New Issue
Block a user