From 90c4a7335cab25e1e5569bfba6964f2525160276 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Sat, 14 Feb 2026 14:46:24 -0800 Subject: [PATCH] chore: roll Playwright to 1.59.0-alpha-1771104257000 --- README.md | 36 +++++++++++++++++++++++-------- package-lock.json | 26 +++++++++++------------ package.json | 4 ++-- scripts/update.js | 2 +- skills/playwright-cli/SKILL.md | 39 +++++++++++++++++++++++++--------- 5 files changed, 72 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index ac5d4f1..0e4b9a0 100644 --- a/README.md +++ b/README.md @@ -222,17 +222,9 @@ playwright-cli video-start # start video recording playwright-cli video-stop [filename] # stop video recording ``` -### Install +### Open parameters ```bash -playwright-cli install --skills # install skills -playwright-cli install-browser # install browser -``` - -### Configuration - -```bash -playwright-cli config [options] # configure session settings playwright-cli open --browser=chrome # use specific browser playwright-cli open --extension # connect via browser extension playwright-cli open --persistent # use persistent profile @@ -242,6 +234,23 @@ playwright-cli close # close the browser playwright-cli delete-data # delete user data for default session ``` +### Snapshots + +After each command, playwright-cli provides a snapshot of the current browser state. + +```bash +> playwright-cli goto https://example.com +### Page +- Page URL: https://example.com/ +- Page Title: Example Domain +### Snapshot +[Snapshot](.playwright-cli/page-2026-02-14T19-22-42-679Z.yml) +``` + +You can also take a snapshot on demand using `playwright-cli snapshot` command. + +If `--filename` is not provided, a new snapshot file is created with a timestamp. Default to automatic file naming, use `--filename=` when artifact is a part of the workflow result. + ### Sessions ```bash @@ -252,6 +261,15 @@ playwright-cli list # list all sessions playwright-cli close-all # close all browsers playwright-cli kill-all # forcefully kill all browser processes ``` + +### Local installation + +In some cases you might want to install playwright-cli locally. If running the globally available `playwright-cli` binary fails, use `npx playwright-cli` to run the commands. For example: + +```bash +npx playwright-cli open https://example.com +npx playwright-cli click e1 +``` ## Configuration file diff --git a/package-lock.json b/package-lock.json index 17717ec..09e34d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,13 +10,13 @@ "license": "Apache-2.0", "dependencies": { "minimist": "^1.2.5", - "playwright": "1.59.0-alpha-2026-02-14" + "playwright": "1.59.0-alpha-1771104257000" }, "bin": { "playwright-cli": "playwright-cli.js" }, "devDependencies": { - "@playwright/test": "1.59.0-alpha-2026-02-14", + "@playwright/test": "1.59.0-alpha-1771104257000", "@types/node": "^25.2.1" }, "engines": { @@ -24,13 +24,13 @@ } }, "node_modules/@playwright/test": { - "version": "1.59.0-alpha-2026-02-14", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.59.0-alpha-2026-02-14.tgz", - "integrity": "sha512-qRk14zmjmpNt8iEe5QuJ/zQfNvqayPr3NTmYiXvUKkH4VUEtBV6mGcUsx+AGXND3/gExoxHh3yL03eaw/7+o4Q==", + "version": "1.59.0-alpha-1771104257000", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.59.0-alpha-1771104257000.tgz", + "integrity": "sha512-0zUPgLuSbyO2xtA+FdEWejFpA5tYU1dINMj2D6KGbB7dgxW8V/4bOrpYS38hizSrzpdSiuRcIK7UgiNFxEeK3A==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.59.0-alpha-2026-02-14" + "playwright": "1.59.0-alpha-1771104257000" }, "bin": { "playwright": "cli.js" @@ -73,12 +73,12 @@ } }, "node_modules/playwright": { - "version": "1.59.0-alpha-2026-02-14", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.59.0-alpha-2026-02-14.tgz", - "integrity": "sha512-k9va3fYgzhrMpSgFyovKjFf/Pv69cvnAQtSqmGtEUD6Te9mpU/Pq+E/a1lUylYKtYC0jl1a821SgIW57uGObGQ==", + "version": "1.59.0-alpha-1771104257000", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.59.0-alpha-1771104257000.tgz", + "integrity": "sha512-6SCMMMJaDRsSqiKVLmb2nhtLES7iTYawTWWrQK6UdIGNzXi8lka4sLKRec3L4DnTWwddAvCuRn8035dhNiHzbg==", "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.59.0-alpha-2026-02-14" + "playwright-core": "1.59.0-alpha-1771104257000" }, "bin": { "playwright": "cli.js" @@ -91,9 +91,9 @@ } }, "node_modules/playwright-core": { - "version": "1.59.0-alpha-2026-02-14", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.59.0-alpha-2026-02-14.tgz", - "integrity": "sha512-WGco2Dei6GL1ZdnPbIvwAz3vp51WzhUJYcG10KBLq1lMCiO4Av/YBdvsQUvi1GNVlP1ZDTFFUjvwjKWuA6m3Mg==", + "version": "1.59.0-alpha-1771104257000", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.59.0-alpha-1771104257000.tgz", + "integrity": "sha512-YiXup3pnpQUCBMSIW5zx8CErwRx4K6O5Kojkw2BzJui8MazoMUDU6E3xGsb1kzFviEAE09LFQ+y1a0RhIJQ5SA==", "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" diff --git a/package.json b/package.json index cd586e1..9f8fc51 100644 --- a/package.json +++ b/package.json @@ -18,12 +18,12 @@ "test": "playwright test" }, "devDependencies": { - "@playwright/test": "1.59.0-alpha-2026-02-14", + "@playwright/test": "1.59.0-alpha-1771104257000", "@types/node": "^25.2.1" }, "dependencies": { "minimist": "^1.2.5", - "playwright": "1.59.0-alpha-2026-02-14" + "playwright": "1.59.0-alpha-1771104257000" }, "bin": { "playwright-cli": "playwright-cli.js" diff --git a/scripts/update.js b/scripts/update.js index a0b2325..1bdb054 100644 --- a/scripts/update.js +++ b/scripts/update.js @@ -28,7 +28,7 @@ async function main() { console.log(`Copied skills from ${generatedSkillsDir} to ${targetSkillsDir}`); // Clean up generated skills directory - await fs.rm(path.join(rootDir, '.claude', 'skills'), { recursive: true }); + await fs.rm(generatedSkillsDir, { recursive: true }); console.log('Cleaned up generated skills directory'); } catch { console.warn('Warning: Generated skills directory not found at', generatedSkillsDir); diff --git a/skills/playwright-cli/SKILL.md b/skills/playwright-cli/SKILL.md index 29182e7..11bad2b 100644 --- a/skills/playwright-cli/SKILL.md +++ b/skills/playwright-cli/SKILL.md @@ -17,7 +17,7 @@ playwright-cli goto https://playwright.dev playwright-cli click e15 playwright-cli type "page.click" playwright-cli press Enter -# take a screenshot +# take a screenshot (rarely used, as snapshot is more common) playwright-cli screenshot # close the browser playwright-cli close @@ -155,14 +155,7 @@ playwright-cli video-start playwright-cli video-stop video.webm ``` -### Install - -```bash -playwright-cli install --skills -playwright-cli install-browser -``` - -### Configuration +## Open parameters ```bash # Use specific browser when creating session playwright-cli open --browser=chrome @@ -186,7 +179,24 @@ playwright-cli close playwright-cli delete-data ``` -### Browser Sessions +## Snapshots + +After each command, playwright-cli provides a snapshot of the current browser state. + +```bash +> playwright-cli goto https://example.com +### Page +- Page URL: https://example.com/ +- Page Title: Example Domain +### Snapshot +[Snapshot](.playwright-cli/page-2026-02-14T19-22-42-679Z.yml) +``` + +You can also take a snapshot on demand using `playwright-cli snapshot` command. + +If `--filename` is not provided, a new snapshot file is created with a timestamp. Default to automatic file naming, use `--filename=` when artifact is a part of the workflow result. + +## Browser Sessions ```bash # create new browser session named "mysession" with persistent profile @@ -204,6 +214,15 @@ playwright-cli close-all playwright-cli kill-all ``` +## Local installation + +In some cases user might want to install playwright-cli locally. If running globally available `playwright-cli` binary fails, use `npx playwright-cli` to run the commands. For example: + +```bash +npx playwright-cli open https://example.com +npx playwright-cli click e1 +``` + ## Example: Form submission ```bash