@playwright/cli
Advanced tools
+3
-3
| { | ||
| "name": "@playwright/cli", | ||
| "version": "0.1.4", | ||
| "version": "0.1.5", | ||
| "description": "Playwright CLI", | ||
@@ -21,3 +21,3 @@ "repository": { | ||
| "devDependencies": { | ||
| "@playwright/test": "1.60.0-alpha-1775061447000", | ||
| "@playwright/test": "1.60.0-alpha-1775237291000", | ||
| "@types/node": "^25.2.1" | ||
@@ -27,3 +27,3 @@ }, | ||
| "minimist": "^1.2.5", | ||
| "playwright": "1.60.0-alpha-1775061447000" | ||
| "playwright": "1.60.0-alpha-1775237291000" | ||
| }, | ||
@@ -30,0 +30,0 @@ "bin": { |
+1
-1
@@ -254,3 +254,3 @@ # playwright-cli | ||
| playwright-cli open --browser=chrome # use specific browser | ||
| playwright-cli open --extension # connect via browser extension | ||
| playwright-cli attach --extension # connect via browser extension | ||
| playwright-cli open --persistent # use persistent profile | ||
@@ -257,0 +257,0 @@ playwright-cli open --profile=<path> # use custom profile directory |
@@ -163,2 +163,17 @@ --- | ||
| ## Raw output | ||
| The global `--raw` option strips page status, generated code, and snapshot sections from the output, returning only the result value. Use it to pipe command output into other tools. Commands that don't produce output return nothing. | ||
| ```bash | ||
| playwright-cli --raw eval "JSON.stringify(performance.timing)" | jq '.loadEventEnd - .navigationStart' | ||
| playwright-cli --raw eval "JSON.stringify([...document.querySelectorAll('a')].map(a => a.href))" > links.json | ||
| playwright-cli --raw snapshot > before.yml | ||
| playwright-cli click e5 | ||
| playwright-cli --raw snapshot > after.yml | ||
| diff before.yml after.yml | ||
| TOKEN=$(playwright-cli --raw cookie-get session_id) | ||
| playwright-cli --raw localstorage-get theme | ||
| ``` | ||
| ## Open parameters | ||
@@ -171,4 +186,2 @@ ```bash | ||
| playwright-cli open --browser=msedge | ||
| # Connect to browser via extension | ||
| playwright-cli open --extension | ||
@@ -180,2 +193,5 @@ # Use persistent profile (by default profile is in-memory) | ||
| # Connect to browser via extension | ||
| playwright-cli attach --extension | ||
| # Start with config file | ||
@@ -182,0 +198,0 @@ playwright-cli open --config=my-config.json |
74035
0.97%+ Added
+ Added
- Removed
- Removed