From f1feebe7511ed25ecf35b2a1d58388e30a1263ee Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 28 Sep 2026 16:05:59 -0700 Subject: [PATCH] chore: roll Playwright to 1.64.0-alpha-1790635538000 --- README.md | 1 + package-lock.json | 28 +++++++++---------- package.json | 6 ++-- skills/playwright-cli/SKILL.md | 11 ++++++-- .../playwright-cli/references/running-code.md | 4 +++ .../references/test-generation.md | 2 +- 6 files changed, 31 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index ee66a04..9595a2d 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ playwright-cli snapshot # snapshot a specific element playwright-cli snapshot --depth=N # limit snapshot depth for efficiency playwright-cli find # search the snapshot for text, returns matching nodes playwright-cli find --regex # search the snapshot with a regexp +playwright-cli find --filename=f # save matches to a file playwright-cli eval [ref] # evaluate javascript expression on page or element playwright-cli dialog-accept [prompt] # accept a dialog playwright-cli dialog-dismiss # dismiss a dialog diff --git a/package-lock.json b/package-lock.json index 84b07d2..5e0414d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,14 +9,14 @@ "version": "0.1.21", "license": "Apache-2.0", "dependencies": { - "playwright": "1.64.0-alpha-1789764292000", - "playwright-core": "1.64.0-alpha-1789764292000" + "playwright": "1.64.0-alpha-1790635538000", + "playwright-core": "1.64.0-alpha-1790635538000" }, "bin": { "playwright-cli": "playwright-cli.js" }, "devDependencies": { - "@playwright/test": "1.64.0-alpha-1789764292000", + "@playwright/test": "1.64.0-alpha-1790635538000", "@types/node": "^25.2.1" }, "engines": { @@ -24,13 +24,13 @@ } }, "node_modules/@playwright/test": { - "version": "1.64.0-alpha-1789764292000", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.64.0-alpha-1789764292000.tgz", - "integrity": "sha512-fLZsEdWPIf61CW8Pfkzee1/1QoRyGt8V+I/XJ7Tq09m8uYYihQzvIcUqBLv5cAORlOhLjp/0YrhXAYFCb3cyPw==", + "version": "1.64.0-alpha-1790635538000", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.64.0-alpha-1790635538000.tgz", + "integrity": "sha512-fwNS0KM061wkRX7blFSp+dk5Bk4GtZKNqg/nNP2zdvXn8gN5+pZSSUlxs3go83BbnSNbXI/60wme2HJHY2LyCA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.64.0-alpha-1789764292000" + "playwright": "1.64.0-alpha-1790635538000" }, "bin": { "playwright": "cli.js" @@ -50,12 +50,12 @@ } }, "node_modules/playwright": { - "version": "1.64.0-alpha-1789764292000", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.64.0-alpha-1789764292000.tgz", - "integrity": "sha512-3Ngs4ERGdC912uW3srEDtNVey4u1wSaQ/EFcKhxMpz0by0K6nidaJgM087pLpJc1osytiVnL7ack5gvgPArPNw==", + "version": "1.64.0-alpha-1790635538000", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.64.0-alpha-1790635538000.tgz", + "integrity": "sha512-/5XDUMxpOd/9AojJtWDFIRV3EJZNQ0AwvK69wgt3CPzy8wTgiBG9pX45VfxtqtvIRGwfWzMhrvawNKreG69Snw==", "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.64.0-alpha-1789764292000" + "playwright-core": "1.64.0-alpha-1790635538000" }, "bin": { "playwright": "cli.js" @@ -65,9 +65,9 @@ } }, "node_modules/playwright-core": { - "version": "1.64.0-alpha-1789764292000", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.64.0-alpha-1789764292000.tgz", - "integrity": "sha512-ZgRaybFv4rRy7QMGnYprEGFdNJnvapNqcaER2w96bDQA+40BWIle1el1Yh9KHD3E6XYmieMB+r+UxFTCauTGGQ==", + "version": "1.64.0-alpha-1790635538000", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.64.0-alpha-1790635538000.tgz", + "integrity": "sha512-pNwaXirhXMRLaRQs4NQ18EpTdtDoFwyPH9FOaaDC7YXG4hpwE2xmwCic/1srbuExVQC7zT9LJSJpDBAru+Vo9A==", "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" diff --git a/package.json b/package.json index e5d1810..f40a449 100644 --- a/package.json +++ b/package.json @@ -18,12 +18,12 @@ "test": "playwright test" }, "devDependencies": { - "@playwright/test": "1.64.0-alpha-1789764292000", + "@playwright/test": "1.64.0-alpha-1790635538000", "@types/node": "^25.2.1" }, "dependencies": { - "playwright": "1.64.0-alpha-1789764292000", - "playwright-core": "1.64.0-alpha-1789764292000" + "playwright": "1.64.0-alpha-1790635538000", + "playwright-core": "1.64.0-alpha-1790635538000" }, "bin": { "playwright-cli": "playwright-cli.js" diff --git a/skills/playwright-cli/SKILL.md b/skills/playwright-cli/SKILL.md index 155cb96..0a75c90 100644 --- a/skills/playwright-cli/SKILL.md +++ b/skills/playwright-cli/SKILL.md @@ -1,7 +1,7 @@ --- name: playwright-cli description: Automate browser interactions, test web pages and work with Playwright tests. -allowed-tools: Bash(playwright-cli:*) Bash(npx:*) Bash(npm:*) +allowed-tools: Bash(playwright-cli:*) Bash(npx playwright:*) Bash(npx --no-install playwright:*) --- # Browser Automation with playwright-cli @@ -52,6 +52,8 @@ 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 @@ -210,7 +212,8 @@ playwright-cli highlight --hide ### WebMCP Some pages register their own tools for agents through the experimental WebMCP API. When a page -has them, the page status says so, and the snapshot lists them at the top: +has them, the page status says so, and the snapshot lists them at the top. Run `webmcp-list` to +get the same list and schemas without taking a snapshot: ``` - Page URL: https://example.com/ @@ -227,7 +230,7 @@ has them, the page status says so, and the snapshot lists them at the top: Prefer these tools over driving the UI when one matches the task: the page implements them, so a single call replaces a sequence of clicks and fills — and it cannot be blocked by a cookie banner or a newsletter modal. -Run `webmcp-call --params '{...}'` to call the tool. Run `webmcp-list` to only list the tools and schemas. +Run `webmcp-call --params '{...}'` to call the tool. ```bash playwright-cli webmcp-call search --params '{"query":"cats"}' @@ -394,6 +397,8 @@ playwright-cli kill-all ## Installation +Package installation and custom `npm` scripts may require separate approval. + If global `playwright-cli` command is not available, try a local version via `npx playwright cli`: ```bash diff --git a/skills/playwright-cli/references/running-code.md b/skills/playwright-cli/references/running-code.md index 98b541f..5bf7e8c 100644 --- a/skills/playwright-cli/references/running-code.md +++ b/skills/playwright-cli/references/running-code.md @@ -21,6 +21,10 @@ playwright-cli run-code --filename=./my-script.js The code must be a single function expression, it is wrapped in `(...)` and evaluated. import/export/require syntax is not supported. +The code runs in an isolated context, not in a full Node.js environment. `require`, `process` and Node modules are not +available. Timers (`setTimeout`, `setInterval`), `fetch`, `URL`, `Buffer`, `crypto`, `AbortController`, `TextEncoder` +and `TextDecoder` are available. + ## Geolocation ```bash diff --git a/skills/playwright-cli/references/test-generation.md b/skills/playwright-cli/references/test-generation.md index 35a8d57..33ae38b 100644 --- a/skills/playwright-cli/references/test-generation.md +++ b/skills/playwright-cli/references/test-generation.md @@ -349,7 +349,7 @@ Rules: ### 2.3 Generate multiple scenarios -Loop 2.2 over the targeted scenarios one at a time, restarting the seed between each so every test starts from a clean page. This is safe to parallelise due to unique generated session names - just make sure each test run is stopped. +Loop 2.2 over the targeted scenarios one at a time, restarting the seed between each so every test starts from a clean page. Make sure each test run is stopped before starting the next one. ### 2.4 Run generated tests