@playwright/cli
Advanced tools
+3
-3
| { | ||
| "name": "@playwright/cli", | ||
| "version": "0.0.63", | ||
| "version": "0.0.64", | ||
| "description": "Playwright CLI", | ||
@@ -24,4 +24,4 @@ "repository": { | ||
| "minimist": "^1.2.5", | ||
| "playwright": "1.59.0-alpha-1770157258000", | ||
| "playwright-core": "1.59.0-alpha-1770157258000" | ||
| "playwright": "1.59.0-alpha-1770338664000", | ||
| "playwright-core": "1.59.0-alpha-1770338664000" | ||
| }, | ||
@@ -28,0 +28,0 @@ "bin": { |
+23
-16
@@ -108,3 +108,3 @@ # playwright-cli | ||
| Following will result in two browsers with separate profiles being available. Pass `--session` to | ||
| Following will result in two browsers with separate profiles being available. Pass `-s=` to | ||
| the invocation to talk to a specific browser. | ||
@@ -114,4 +114,4 @@ | ||
| playwright-cli open https://playwright.dev | ||
| playwright-cli --session=example open https://example.com | ||
| playwright-cli session-list | ||
| playwright-cli -s=example open https://example.com | ||
| playwright-cli list | ||
| ``` | ||
@@ -125,3 +125,3 @@ | ||
| Or instruct it to prepend `--session` to the calls. | ||
| Or instruct it to prepend `-s=` to the calls. | ||
@@ -131,7 +131,5 @@ Manage your sessions as follows: | ||
| ```bash | ||
| playwright-cli session-list # list all sessions | ||
| playwright-cli session-stop [name] # stop session | ||
| playwright-cli session-restart [name] # restart session | ||
| playwright-cli session-stop-all # stop all sessions | ||
| playwright-cli session-delete [name] # delete session data along with the profiles | ||
| playwright-cli list # list all sessions | ||
| playwright-cli close-all # close all browsers | ||
| playwright-cli kill-all # forcefully kill all browser processes | ||
| ``` | ||
@@ -159,2 +157,3 @@ | ||
| playwright-cli snapshot # capture page snapshot to obtain element ref | ||
| playwright-cli snapshot --filename=f # save snapshot to specific file | ||
| playwright-cli eval <func> [ref] # evaluate javascript expression on page or element | ||
@@ -195,3 +194,5 @@ playwright-cli dialog-accept [prompt] # accept a dialog | ||
| playwright-cli screenshot [ref] # screenshot of the current page or element | ||
| playwright-cli screenshot --filename=f # save screenshot with specific filename | ||
| playwright-cli pdf # save page as pdf | ||
| playwright-cli pdf --filename=page.pdf # save pdf with specific filename | ||
| ``` | ||
@@ -269,3 +270,7 @@ | ||
| playwright-cli open --extension # connect via browser extension | ||
| playwright-cli open --persistent # use persistent profile | ||
| playwright-cli open --profile=<path> # use custom profile directory | ||
| playwright-cli open --config=file.json # use config file | ||
| playwright-cli close # close the browser | ||
| playwright-cli delete-data # delete user data for default session | ||
| ``` | ||
@@ -276,8 +281,8 @@ | ||
| ```bash | ||
| playwright-cli --session=name <cmd> # run command in named session | ||
| playwright-cli session-list # list all sessions | ||
| playwright-cli session-stop [name] # stop session | ||
| playwright-cli session-restart [name] # restart session | ||
| playwright-cli session-stop-all # stop all sessions | ||
| playwright-cli session-delete [name] # delete session data and profiles | ||
| playwright-cli -s=name <cmd> # run command in named session | ||
| playwright-cli -s=name close # stop a named browser | ||
| playwright-cli -s=name delete-data # delete user data for named browser | ||
| playwright-cli list # list all sessions | ||
| playwright-cli close-all # close all browsers | ||
| playwright-cli kill-all # forcefully kill all browser processes | ||
| ``` | ||
@@ -437,3 +442,4 @@ <!-- END GENERATED CLI HELP --> | ||
| ## Environment | ||
| <details> | ||
| <summary>Configuration via env</summary> | ||
@@ -484,1 +490,2 @@ | Environment | | ||
| | `PLAYWRIGHT_MCP_VIEWPORT_SIZE` specify browser viewport size in pixels, for example "1280x720" | | ||
| </details> |
32376
1.37%482
1.47%+ Added
+ Added
- Removed
- Removed