You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introducing Playwright Agents, three custom agent definitions designed to guide LLMs through the core process of building a Playwright test:
19
+
20
+
***🎭 planner** explores the app and produces a Markdown test plan
21
+
22
+
***🎭 generator** transforms the Markdown plan into the Playwright Test files
23
+
24
+
***🎭 healer** executes the test suite and automatically repairs failing tests
25
+
26
+
Run `npx playwright init-agents` with your client of choice to generate the latest agent definitions:
27
+
28
+
```bash
29
+
# Generate agent files for each agentic loop
30
+
# Visual Studio Code
31
+
npx playwright init-agents --loop=vscode
32
+
# Claude Code
33
+
npx playwright init-agents --loop=claude
34
+
# opencode
35
+
npx playwright init-agents --loop=opencode
36
+
```
37
+
38
+
[Learn more about Playwright Agents](./test-agents.md)
39
+
40
+
### New APIs
41
+
42
+
- New methods [`method: Page.consoleMessages`] and [`method: Page.pageErrors`] for retrieving the most recent console messages from the page
43
+
- New method [`method: Page.requests`] for retrieving the most recent network requests from the page
44
+
- Added [`--test-list` and `--test-list-invert`](./test-cli.md#test-list) to allow manual specification of specific tests from a file
45
+
46
+
### UI Mode and HTML Reporter
47
+
48
+
- Added option to `'html'` reporter to disable the "Copy prompt" button
49
+
- Added option to `'html'` reporter and UI Mode to merge files, collapsing test and describe blocks into a single unified list
50
+
- Added option to UI Mode mirroring the `--update-snapshots` options
51
+
- Added option to UI Mode to run only a single worker at a time
52
+
53
+
### Breaking Changes
54
+
55
+
- Event [`event: BrowserContext.backgroundPage`] has been deprecated and will not be emitted. Method [`method: BrowserContext.backgroundPages`] will return an empty list
56
+
57
+
### Miscellaneous
58
+
59
+
- Aria snapshots render and compare `input``placeholder`
60
+
- Added environment variable `PLAYWRIGHT_TEST` to Playwright worker processes to allow discriminating on testing status
0 commit comments