Skip to content

Commit 8428dd7

Browse files
authored
chore: roll Playwright to 1.60.0-alpha-1777077614000 (#381)
1 parent e001925 commit 8428dd7

5 files changed

Lines changed: 37 additions & 18 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,10 @@ playwright-cli highlight --hide # hide all page highlights
260260
261261
```bash
262262
playwright-cli open --browser=chrome # use specific browser
263-
playwright-cli attach --extension # connect via browser extension
263+
playwright-cli attach --extension=chrome # connect via Playwright Extension
264264
playwright-cli attach --cdp=chrome # attach to running Chrome/Edge by channel
265265
playwright-cli attach --cdp=<url> # attach via CDP endpoint
266+
playwright-cli detach # detach an attached session, leaves the external browser running
266267
playwright-cli open --persistent # use persistent profile
267268
playwright-cli open --profile=<path> # use custom profile directory
268269
playwright-cli open --config=file.json # use config 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,11 +18,11 @@
1818
"test": "playwright test"
1919
},
2020
"devDependencies": {
21-
"@playwright/test": "1.60.0-alpha-2026-04-24",
21+
"@playwright/test": "1.60.0-alpha-1777077614000",
2222
"@types/node": "^25.2.1"
2323
},
2424
"dependencies": {
25-
"playwright": "1.60.0-alpha-2026-04-24"
25+
"playwright": "1.60.0-alpha-1777077614000"
2626
},
2727
"bin": {
2828
"playwright-cli": "playwright-cli.js"

skills/playwright-cli/SKILL.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ playwright-cli open --persistent
209209
# Use persistent profile with custom directory
210210
playwright-cli open --profile=/path/to/profile
211211
212-
# Connect to browser via extension
213-
playwright-cli attach --extension
212+
# Connect to browser via Playwright Extension
213+
playwright-cli attach --extension=chrome
214214
215215
# Connect to a running Chrome or Edge by channel name
216216
playwright-cli attach --cdp=chrome
@@ -224,6 +224,8 @@ playwright-cli open --config=my-config.json
224224
225225
# Close the browser
226226
playwright-cli close
227+
# Detach from an attached browser (leaves the external browser running)
228+
playwright-cli -s=msedge detach
227229
# Delete user data for the default session
228230
playwright-cli delete-data
229231
```

skills/playwright-cli/references/session-management.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ playwright-cli attach --cdp=msedge-dev
129129

130130
Supported channels: `chrome`, `chrome-beta`, `chrome-dev`, `chrome-canary`, `msedge`, `msedge-beta`, `msedge-dev`, `msedge-canary`.
131131

132+
When `--session` is not provided, the session is named after the channel (e.g. `--cdp=msedge` creates a session called `msedge`), so parallel attaches to Chrome and Edge don't collide on `default`. Pass `--session=<name>` to override.
133+
132134
### Attach via CDP endpoint
133135

134136
Connect to a browser that exposes a Chrome DevTools Protocol endpoint:
@@ -145,6 +147,20 @@ Connect to a browser with the Playwright extension installed:
145147
playwright-cli attach --extension
146148
```
147149

150+
### Detach
151+
152+
Tear down an attached session without affecting the external browser:
153+
154+
```bash
155+
# Detach the default attached session
156+
playwright-cli detach
157+
158+
# Detach a specific attached session
159+
playwright-cli -s=msedge detach
160+
```
161+
162+
`detach` only works on sessions created via `attach`. For sessions created via `open`, use `close`.
163+
148164
## Default Browser Session
149165

150166
When `-s` is omitted, commands use the default browser session:

0 commit comments

Comments
 (0)