Commit f3c62c1
authored
Bump Microsoft.Playwright from 1.58.0 to 1.59.0 (#219)
Updated
[Microsoft.Playwright](https://github.com/microsoft/playwright-dotnet)
from 1.58.0 to 1.59.0.
<details>
<summary>Release notes</summary>
_Sourced from [Microsoft.Playwright's
releases](https://github.com/microsoft/playwright-dotnet/releases)._
## 1.59.0
## 🎬 Screencast
New
[Page.Screencast](https://playwright.dev/dotnet/docs/api/class-page#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" />
</center>
**Screencast recording** — record video with precise start/stop control,
as an alternative to the
[`recordVideoDir`](https://playwright.dev/dotnet/docs/api/class-browser#browser-new-context-option-record-video-dir)
option:
```csharp
await page.Screencast.StartAsync(new() { Path = "video.webm" });
// ... perform actions ...
await page.Screencast.StopAsync();
```
**Action annotations** — enable built-in visual annotations that
highlight interacted elements and display action titles during
recording:
```csharp
await page.Screencast.ShowActionsAsync(new() { Position = "top-right" });
```
`ShowActionsAsync` accepts `Position` (`"top-left"`, `"top"`,
`"top-right"`, `"bottom-left"`, `"bottom"`, `"bottom-right"`),
`Duration` (ms per annotation), and `FontSize` (px). Returns a
disposable to stop showing actions.
**Visual overlays** — add chapter titles and custom HTML overlays on top
of the page for richer narration:
```csharp
await page.Screencast.ShowChapterAsync("Adding TODOs", new() {
Description = "Type and press enter for each TODO",
Duration = 1000,
});
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),
});
```
... (truncated)
Commits viewable in [compare
view](microsoft/playwright-dotnet@v1.58.0...v1.59.0).
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 8d5469b commit f3c62c1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments