Skip to content

Commit 1c9b20e

Browse files
authored
chore: roll Playwright to 1.59.0-alpha-1771104257000 (#262)
1 parent 4914970 commit 1c9b20e

5 files changed

Lines changed: 72 additions & 35 deletions

File tree

README.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -222,17 +222,9 @@ playwright-cli video-start # start video recording
222222
playwright-cli video-stop [filename] # stop video recording
223223
```
224224
225-
### Install
225+
### Open parameters
226226
227227
```bash
228-
playwright-cli install --skills # install skills
229-
playwright-cli install-browser # install browser
230-
```
231-
232-
### Configuration
233-
234-
```bash
235-
playwright-cli config [options] # configure session settings
236228
playwright-cli open --browser=chrome # use specific browser
237229
playwright-cli open --extension # connect via browser extension
238230
playwright-cli open --persistent # use persistent profile
@@ -242,6 +234,23 @@ playwright-cli close # close the browser
242234
playwright-cli delete-data # delete user data for default session
243235
```
244236
237+
### Snapshots
238+
239+
After each command, playwright-cli provides a snapshot of the current browser state.
240+
241+
```bash
242+
> playwright-cli goto https://example.com
243+
### Page
244+
- Page URL: https://example.com/
245+
- Page Title: Example Domain
246+
### Snapshot
247+
[Snapshot](.playwright-cli/page-2026-02-14T19-22-42-679Z.yml)
248+
```
249+
250+
You can also take a snapshot on demand using `playwright-cli snapshot` command.
251+
252+
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.
253+
245254
### Sessions
246255
247256
```bash
@@ -252,6 +261,15 @@ playwright-cli list # list all sessions
252261
playwright-cli close-all # close all browsers
253262
playwright-cli kill-all # forcefully kill all browser processes
254263
```
264+
265+
### Local installation
266+
267+
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:
268+
269+
```bash
270+
npx playwright-cli open https://example.com
271+
npx playwright-cli click e1
272+
```
255273
<!-- END GENERATED CLI HELP -->
256274
257275
## Configuration file

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
"test": "playwright test"
1919
},
2020
"devDependencies": {
21-
"@playwright/test": "1.59.0-alpha-2026-02-14",
21+
"@playwright/test": "1.59.0-alpha-1771104257000",
2222
"@types/node": "^25.2.1"
2323
},
2424
"dependencies": {
2525
"minimist": "^1.2.5",
26-
"playwright": "1.59.0-alpha-2026-02-14"
26+
"playwright": "1.59.0-alpha-1771104257000"
2727
},
2828
"bin": {
2929
"playwright-cli": "playwright-cli.js"

scripts/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function main() {
2828
console.log(`Copied skills from ${generatedSkillsDir} to ${targetSkillsDir}`);
2929

3030
// Clean up generated skills directory
31-
await fs.rm(path.join(rootDir, '.claude', 'skills'), { recursive: true });
31+
await fs.rm(generatedSkillsDir, { recursive: true });
3232
console.log('Cleaned up generated skills directory');
3333
} catch {
3434
console.warn('Warning: Generated skills directory not found at', generatedSkillsDir);

skills/playwright-cli/SKILL.md

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ playwright-cli goto https://playwright.dev
1717
playwright-cli click e15
1818
playwright-cli type "page.click"
1919
playwright-cli press Enter
20-
# take a screenshot
20+
# take a screenshot (rarely used, as snapshot is more common)
2121
playwright-cli screenshot
2222
# close the browser
2323
playwright-cli close
@@ -155,14 +155,7 @@ playwright-cli video-start
155155
playwright-cli video-stop video.webm
156156
```
157157
158-
### Install
159-
160-
```bash
161-
playwright-cli install --skills
162-
playwright-cli install-browser
163-
```
164-
165-
### Configuration
158+
## Open parameters
166159
```bash
167160
# Use specific browser when creating session
168161
playwright-cli open --browser=chrome
@@ -186,7 +179,24 @@ playwright-cli close
186179
playwright-cli delete-data
187180
```
188181
189-
### Browser Sessions
182+
## Snapshots
183+
184+
After each command, playwright-cli provides a snapshot of the current browser state.
185+
186+
```bash
187+
> playwright-cli goto https://example.com
188+
### Page
189+
- Page URL: https://example.com/
190+
- Page Title: Example Domain
191+
### Snapshot
192+
[Snapshot](.playwright-cli/page-2026-02-14T19-22-42-679Z.yml)
193+
```
194+
195+
You can also take a snapshot on demand using `playwright-cli snapshot` command.
196+
197+
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.
198+
199+
## Browser Sessions
190200
191201
```bash
192202
# create new browser session named "mysession" with persistent profile
@@ -204,6 +214,15 @@ playwright-cli close-all
204214
playwright-cli kill-all
205215
```
206216
217+
## Local installation
218+
219+
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:
220+
221+
```bash
222+
npx playwright-cli open https://example.com
223+
npx playwright-cli click e1
224+
```
225+
207226
## Example: Form submission
208227
209228
```bash

0 commit comments

Comments
 (0)