Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: more release notes fixes (#39980)
Pavel Feldmancec7b21afa00
diff --git a/docs/src/release-notes-csharp.md b/docs/src/release-notes-csharp.mdindex 3a48b99ebf..52a786b29f 100644--- a/docs/src/release-notes-csharp.md+++ b/docs/src/release-notes-csharp.md@@ -10,7 +10,12 @@ import LiteYouTube from '@site/src/components/LiteYouTube';### π¬ Screencast-New [`property: Page.screencast`] API provides a unified interface for capturing page content β both as video recordings, annotations, overlays, and a real-time frame stream.+New [`property: Page.screencast`] API provides a unified interface for capturing page content with:+- Screencast recordings+- Action annotations+- Visual overlays+- Real-time frame capture+- Agentic video receipts<center><img src="https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/images/release-notes-1.59-screencast-demo.gif" alt="Demo" width="500" height="313" />@@ -25,14 +30,6 @@ await page.Screencast.StartAsync(new() { Path = "video.webm" });await page.Screencast.StopAsync();```-**Real-time frame capture** β stream JPEG-encoded frames for custom processing like thumbnails, live previews, AI vision, and more:--```csharp-await page.Screencast.StartAsync(new() {- OnFrame = frame => SendToVisionModel(frame.Data),-});-```-**Action annotations** β enable built-in visual annotations that highlight interacted elements and display action titles during recording:```csharp@@ -52,6 +49,14 @@ await page.Screencast.ShowChapterAsync("Adding TODOs", new() {await page.Screencast.ShowOverlayAsync("<div style=\"color: red\">Recording</div>");```+**Real-time frame capture** β stream JPEG-encoded frames for custom processing like thumbnails, live previews, AI vision, and more:++```csharp+await page.Screencast.StartAsync(new() {+ OnFrame = frame => SendToVisionModel(frame.Data),+});+```+**Agentic video receipts** β coding agents can produce video evidence of their work. After completing a task, an agent can record a walkthrough video with rich annotations for human review:```csharp@@ -116,25 +121,25 @@ New [`method: Browser.bind`] API makes a launched browser available for `playwri**Bind a browser** β start a browser and bind it so others can connect:```csharp-var browser = await chromium.LaunchAsync();var serverInfo = await browser.BindAsync("my-session", new() {WorkspaceDir = "/my/project",});```-**Connect from playwright-cli**+**Connect from playwright-cli** β connect to the running browser from your favorite coding agent.```bashplaywright-cli attach my-session+playwright-cli -s my-session snapshot```-**Connect from playwright/mcp**+**Connect from @playwright/mcp** β or point your MCP server to the running browser.```bash@playwright/mcp --endpoint=my-session```-**Connect from another client**+**Connect from a Playwright client** β use API to connect to the browser. Multiple clients at a time are supported!```csharpvar browser = await chromium.ConnectAsync(serverInfo.Endpoint);@@ -154,10 +159,13 @@ Call [`method: Browser.unbind`] to stop accepting new connections.### π Observability-Run `playwright-cli show` to open the Dashboard that lists all bound browsers, their status, and workspace.+Run `playwright-cli show` to open the Dashboard that lists all the bound browsers, their statuses, and allows interacting with them:+- See what your agent is doing on the background browsers+- Click into the sessions for manual interventions+- Open DevTools to inspect pages from the background browsers.<center>-<img src="https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/images/release-notes-1.59-dashboard.gif" alt="Demo" width="1169" height="835" />+<img src="https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/images/release-notes-1.59-dashboard.png" alt="Demo" width="1169" height="835" /></center>- `playwright-cli` binds all of its browsers automatically, so you can see what your agents are doing.diff --git a/docs/src/release-notes-java.md b/docs/src/release-notes-java.mdindex c883cf1da4..c2e9ee1e24 100644--- a/docs/src/release-notes-java.md+++ b/docs/src/release-notes-java.md@@ -10,7 +10,12 @@ import LiteYouTube from '@site/src/components/LiteYouTube';### π¬ Screencast-New [`property: Page.screencast`] API provides a unified interface for capturing page content β both as video recordings, annotations, overlays, and a real-time frame stream.+New [`property: Page.screencast`] API provides a unified interface for capturing page content with:+- Screencast recordings+- Action annotations+- Visual overlays+- Real-time frame capture+- Agentic video receipts<center><img src="https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/images/release-notes-1.59-screencast-demo.gif" alt="Demo" width="500" height="313" />@@ -25,13 +30,6 @@ page.screencast().start(new Screencast.StartOptions().setPath(Paths.get("video.wpage.screencast().stop();```-**Real-time frame capture** β stream JPEG-encoded frames for custom processing like thumbnails, live previews, AI vision, and more:--```java-page.screencast().start(new Screencast.StartOptions()- .setOnFrame(frame -> sendToVisionModel(frame.data)));-```-**Action annotations** β enable built-in visual annotations that highlight interacted elements and display action titles during recording:```java@@ -51,6 +49,13 @@ page.screencast().showChapter("Adding TODOs",page.screencast().showOverlay("<div style=\"color: red\">Recording</div>");```+**Real-time frame capture** β stream JPEG-encoded frames for custom processing like thumbnails, live previews, AI vision, and more:++```java+page.screencast().start(new Screencast.StartOptions()+ .setOnFrame(frame -> sendToVisionModel(frame.data)));+```+**Agentic video receipts** β coding agents can produce video evidence of their work. After completing a task, an agent can record a walkthrough video with rich annotations for human review:```java@@ -116,24 +121,24 @@ New [`method: Browser.bind`] API makes a launched browser available for `playwri**Bind a browser** β start a browser and bind it so others can connect:```java-Browser browser = chromium.launch();Browser.BindResult serverInfo = browser.bind("my-session",new Browser.BindOptions().setWorkspaceDir("/my/project"));```-**Connect from playwright-cli**+**Connect from playwright-cli** β connect to the running browser from your favorite coding agent.```bashplaywright-cli attach my-session+playwright-cli -s my-session snapshot```-**Connect from playwright/mcp**+**Connect from @playwright/mcp** β or point your MCP server to the running browser.```bash@playwright/mcp --endpoint=my-session```-**Connect from another client**+**Connect from a Playwright client** β use API to connect to the browser. Multiple clients at a time are supported!```javaBrowser browser = chromium.connect(serverInfo.endpoint);@@ -151,10 +156,13 @@ Call [`method: Browser.unbind`] to stop accepting new connections.### π Observability-Run `playwright-cli show` to open the Dashboard that lists all bound browsers, their status, and workspace.+Run `playwright-cli show` to open the Dashboard that lists all the bound browsers, their statuses, and allows interacting with them:+- See what your agent is doing on the background browsers+- Click into the sessions for manual interventions+- Open DevTools to inspect pages from the background browsers.<center>-<img src="https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/images/release-notes-1.59-dashboard.gif" alt="Demo" width="1169" height="835" />+<img src="https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/images/release-notes-1.59-dashboard.png" alt="Demo" width="1169" height="835" /></center>- `playwright-cli` binds all of its browsers automatically, so you can see what your agents are doing.diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.mdindex ddaf728492..fd86883c57 100644--- a/docs/src/release-notes-js.md+++ b/docs/src/release-notes-js.md@@ -10,7 +10,12 @@ import LiteYouTube from '@site/src/components/LiteYouTube';### π¬ Screencast-New [`property: Page.screencast`] API provides a unified interface for capturing page content β both as video recordings, annotations, overlays, and a real-time frame stream.+New [`property: Page.screencast`] API provides a unified interface for capturing page content with:+- Screencast recordings+- Action annotations+- Visual overlays+- Real-time frame capture+- Agentic video receipts<center><img src="https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/images/release-notes-1.59-screencast-demo.gif" alt="Demo" width="500" height="313" />@@ -25,15 +30,6 @@ await page.screencast.start({ path: 'video.webm' });await page.screencast.stop();```-**Real-time frame capture** β stream JPEG-encoded frames for custom processing like thumbnails, live previews, AI vision, and more:--```js-await page.screencast.start({- onFrame: ({ data }) => sendToVisionModel(data),- size: { width: 800, height: 600 },-});-```-**Action annotations** β enable built-in visual annotations that highlight interacted elements and display action titles during recording:```js@@ -70,6 +66,15 @@ await page.screencast.showChapter('Adding TODOs', {await page.screencast.showOverlay('<div style="color: red">Recording</div>');```+**Real-time frame capture** β stream JPEG-encoded frames for custom processing like thumbnails, live previews, AI vision, and more:++```js+await page.screencast.start({+ onFrame: ({ data }) => sendToVisionModel(data),+ size: { width: 800, height: 600 },+});+```+**Agentic video receipts** β coding agents can produce video evidence of their work. After completing a task, an agent can record a walkthrough video with rich annotations for human review:```js@@ -101,26 +106,25 @@ New [`method: Browser.bind`] API makes a launched browser available for `playwri**Bind a browser** β start a browser and bind it so others can connect:```js-const browser = await chromium.launch();const { endpoint } = await browser.bind('my-session', {workspaceDir: '/my/project',});```-**Connect from playwright-cli**+**Connect from playwright-cli** β connect to the running browser from your favorite coding agent.```bashplaywright-cli attach my-sessionplaywright-cli -s my-session snapshot```-**Connect from playwright/mcp**+**Connect from @playwright/mcp** β or point your MCP server to the running browser.```bash@playwright/mcp --endpoint=my-session```-**Connect from another client**+**Connect from a Playwright client** β use API to connect to the browser. Multiple clients at a time are supported!```jsconst browser = await chromium.connect(endpoint);@@ -140,10 +144,13 @@ Call [`method: Browser.unbind`] to stop accepting new connections.### π Observability-Run `playwright-cli show` to open the Dashboard that lists all bound browsers, their status, and workspace.+Run `playwright-cli show` to open the Dashboard that lists all the bound browsers, their statuses, and allows interacting with them:+- See what your agent is doing on the background browsers+- Click into the sessions for manual interventions+- Open DevTools to inspect pages from the background browsers.<center>-<img src="https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/images/release-notes-1.59-dashboard.gif" alt="Demo" width="1169" height="835" />+<img src="https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/images/release-notes-1.59-dashboard.png" alt="Demo" width="1169" height="835" /></center>- `playwright-cli` binds all of its browsers automatically, so you can see what your agents are doing.diff --git a/docs/src/release-notes-python.md b/docs/src/release-notes-python.mdindex 3a71cb1888..ea012876c7 100644--- a/docs/src/release-notes-python.md+++ b/docs/src/release-notes-python.md@@ -10,7 +10,12 @@ import LiteYouTube from '@site/src/components/LiteYouTube';### π¬ Screencast-New [`property: Page.screencast`] API provides a unified interface for capturing page content β both as video recordings, annotations, overlays, and a real-time frame stream.+New [`property: Page.screencast`] API provides a unified interface for capturing page content with:+- Screencast recordings+- Action annotations+- Visual overlays+- Real-time frame capture+- Agentic video receipts<center><img src="https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/images/release-notes-1.59-screencast-demo.gif" alt="Demo" width="500" height="313" />@@ -25,14 +30,6 @@ page.screencast.start(path="video.webm")page.screencast.stop()```-**Real-time frame capture** β stream JPEG-encoded frames for custom processing like thumbnails, live previews, AI vision, and more:--```python-page.screencast.start(- on_frame=lambda frame: send_to_vision_model(frame["data"]),-)-```-**Action annotations** β enable built-in visual annotations that highlight interacted elements and display action titles during recording:```python@@ -52,6 +49,14 @@ page.screencast.show_chapter("Adding TODOs",page.screencast.show_overlay('<div style="color: red">Recording</div>')```+**Real-time frame capture** β stream JPEG-encoded frames for custom processing like thumbnails, live previews, AI vision, and more:++```python+page.screencast.start(+ on_frame=lambda frame: send_to_vision_model(frame["data"]),+)+```+**Agentic video receipts** β coding agents can produce video evidence of their work. After completing a task, an agent can record a walkthrough video with rich annotations for human review:```python@@ -116,25 +121,25 @@ New [`method: Browser.bind`] API makes a launched browser available for `playwri**Bind a browser** β start a browser and bind it so others can connect:```python-browser = await chromium.launch()server_info = await browser.bind("my-session",workspace_dir="/my/project",)```-**Connect from playwright-cli**+**Connect from playwright-cli** β connect to the running browser from your favorite coding agent.```bashplaywright-cli attach my-session+playwright-cli -s my-session snapshot```-**Connect from playwright/mcp**+**Connect from @playwright/mcp** β or point your MCP server to the running browser.```bash@playwright/mcp --endpoint=my-session```-**Connect from another client**+**Connect from a Playwright client** β use API to connect to the browser. Multiple clients at a time are supported!```pythonbrowser = await chromium.connect(server_info["endpoint"])@@ -154,10 +159,13 @@ Call [`method: Browser.unbind`] to stop accepting new connections.### π Observability-Run `playwright-cli show` to open the Dashboard that lists all bound browsers, their status, and workspace.+Run `playwright-cli show` to open the Dashboard that lists all the bound browsers, their statuses, and allows interacting with them:+- See what your agent is doing on the background browsers+- Click into the sessions for manual interventions+- Open DevTools to inspect pages from the background browsers.<center>-<img src="https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/images/release-notes-1.59-dashboard.gif" alt="Demo" width="1169" height="835" />+<img src="https://raw.githubusercontent.com/microsoft/playwright/main/docs/src/images/release-notes-1.59-dashboard.png" alt="Demo" width="1169" height="835" /></center>- `playwright-cli` binds all of its browsers automatically, so you can see what your agents are doing.