From 5c245fe335bd226c6589d2e18c8c85c4fa4b8467 Mon Sep 17 00:00:00 2001 From: "microsoft-playwright-automation[bot]" <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com> Date: Wed, 23 Sep 2026 10:24:16 +0000 Subject: [PATCH] feat(roll): roll to ToT Playwright (23-09-26) --- dotnet/docs/api/class-apirequest.mdx | 2 +- dotnet/docs/api/class-browser.mdx | 14 ++++-- dotnet/docs/api/class-browsertype.mdx | 7 ++- dotnet/docs/api/class-cdpsession.mdx | 4 +- dotnet/docs/api/class-cdpsessionevent.mdx | 2 +- dotnet/docs/api/class-clock.mdx | 1 + dotnet/docs/api/class-frame.mdx | 8 ++- dotnet/docs/api/class-page.mdx | 8 ++- dotnet/docs/api/class-screencast.mdx | 36 +++++++++++++- dotnet/docs/clock.mdx | 1 + dotnet/docs/getting-started-cli.mdx | 10 +--- dotnet/docs/getting-started-mcp.mdx | 12 +---- java/docs/api/class-apirequest.mdx | 2 +- java/docs/api/class-browser.mdx | 14 ++++-- java/docs/api/class-browsertype.mdx | 7 ++- java/docs/api/class-clock.mdx | 1 + java/docs/api/class-frame.mdx | 7 +++ java/docs/api/class-page.mdx | 7 +++ java/docs/api/class-screencast.mdx | 36 +++++++++++++- java/docs/clock.mdx | 1 + java/docs/getting-started-cli.mdx | 10 +--- java/docs/getting-started-mcp.mdx | 12 +---- nodejs/docs/api/class-androiddevice.mdx | 19 ++++++- nodejs/docs/api/class-apirequest.mdx | 2 +- nodejs/docs/api/class-browser.mdx | 42 +++++++++++++--- nodejs/docs/api/class-browsercontext.mdx | 2 +- nodejs/docs/api/class-browsertype.mdx | 21 ++++++-- nodejs/docs/api/class-clock.mdx | 1 + nodejs/docs/api/class-electron.mdx | 17 ++++++- nodejs/docs/api/class-elementhandle.mdx | 4 +- nodejs/docs/api/class-frame.mdx | 23 +++++++-- nodejs/docs/api/class-jshandle.mdx | 10 +++- nodejs/docs/api/class-locator.mdx | 14 ++++-- nodejs/docs/api/class-page.mdx | 25 +++++++--- nodejs/docs/api/class-screencast.mdx | 36 +++++++++++++- nodejs/docs/api/class-test.mdx | 11 +++++ nodejs/docs/api/class-testconfig.mdx | 3 ++ nodejs/docs/api/class-testoptions.mdx | 60 +++++++++++++++++++++-- nodejs/docs/api/class-testproject.mdx | 40 +++++++++++++++ nodejs/docs/api/class-tracing.mdx | 3 ++ nodejs/docs/clock.mdx | 1 + nodejs/docs/getting-started-cli.mdx | 10 +--- nodejs/docs/getting-started-mcp.mdx | 12 +---- nodejs/docs/test-parallel.mdx | 6 +++ nodejs/docs/test-snapshots.mdx | 14 ++++++ python/docs/api/class-apirequest.mdx | 2 +- python/docs/api/class-browser.mdx | 14 ++++-- python/docs/api/class-browsertype.mdx | 7 ++- python/docs/api/class-clock.mdx | 1 + python/docs/api/class-frame.mdx | 6 +++ python/docs/api/class-page.mdx | 6 +++ python/docs/api/class-screencast.mdx | 36 +++++++++++++- python/docs/clock.mdx | 1 + python/docs/getting-started-cli.mdx | 10 +--- python/docs/getting-started-mcp.mdx | 12 +---- 55 files changed, 525 insertions(+), 148 deletions(-) diff --git a/dotnet/docs/api/class-apirequest.mdx b/dotnet/docs/api/class-apirequest.mdx index 0bd48c5e86..1dfa9847cd 100644 --- a/dotnet/docs/api/class-apirequest.mdx +++ b/dotnet/docs/api/class-apirequest.mdx @@ -34,7 +34,7 @@ await ApiRequest.NewContextAsync(options); * baseURL: `http://localhost:3000` and sending request to `/bar.html` results in `http://localhost:3000/bar.html` * baseURL: `http://localhost:3000/foo/` and sending request to `./bar.html` results in `http://localhost:3000/foo/bar.html` * baseURL: `http://localhost:3000/foo` (without trailing slash) and navigating to `./bar.html` results in `http://localhost:3000/bar.html` - - `ClientCertificates` [IEnumerable]?<ClientCertificates> *(optional)* Added in: 1.46# + - `ClientCertificates` [IEnumerable]?<ClientCertificates> *(optional)* Added in: v1.46# - `Origin` [string] Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port. diff --git a/dotnet/docs/api/class-browser.mdx b/dotnet/docs/api/class-browser.mdx index 0fd75b1dd4..0f2e81aaf1 100644 --- a/dotnet/docs/api/class-browser.mdx +++ b/dotnet/docs/api/class-browser.mdx @@ -209,7 +209,7 @@ await browser.CloseAsync(); - `BypassCSP` [bool]? *(optional)*# Toggles bypassing page's Content-Security-Policy. Defaults to `false`. - - `ClientCertificates` [IEnumerable]?<ClientCertificates> *(optional)* Added in: 1.46# + - `ClientCertificates` [IEnumerable]?<ClientCertificates> *(optional)* Added in: v1.46# - `Origin` [string] Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port. @@ -301,7 +301,7 @@ await browser.CloseAsync(); Whether to ignore HTTPS errors when sending network requests. Defaults to `false`. - `IsMobile` [bool]? *(optional)*# - Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more about [mobile emulation](../emulation.mdx#ismobile). + Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, so you don't actually need to set it manually. Defaults to `false`. Learn more about [mobile emulation](../emulation.mdx#ismobile). - `JavaScriptEnabled` [bool]? *(optional)*# Whether or not to enable JavaScript in the context. Defaults to `true`. Learn more about [disabling JavaScript](../emulation.mdx#javascript-enabled). @@ -345,6 +345,9 @@ await browser.CloseAsync(); - `RecordVideoDir` [string]? *(optional)*# Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make sure to call [BrowserContext.CloseAsync()](/api/class-browsercontext.mdx#browser-context-close) for videos to be saved. + - `RecordVideoFps` [int]? *(optional)* Added in: v1.64# + + Frame rate of the recorded videos in frames per second. Defaults to `25`. Firefox and WebKit currently capture up to 25 frames per second. - `RecordVideoSize` RecordVideoSize? *(optional)*# - `Width` [int] @@ -434,7 +437,7 @@ await Browser.NewPageAsync(options); - `BypassCSP` [bool]? *(optional)*# Toggles bypassing page's Content-Security-Policy. Defaults to `false`. - - `ClientCertificates` [IEnumerable]?<ClientCertificates> *(optional)* Added in: 1.46# + - `ClientCertificates` [IEnumerable]?<ClientCertificates> *(optional)* Added in: v1.46# - `Origin` [string] Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port. @@ -526,7 +529,7 @@ await Browser.NewPageAsync(options); Whether to ignore HTTPS errors when sending network requests. Defaults to `false`. - `IsMobile` [bool]? *(optional)*# - Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more about [mobile emulation](../emulation.mdx#ismobile). + Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, so you don't actually need to set it manually. Defaults to `false`. Learn more about [mobile emulation](../emulation.mdx#ismobile). - `JavaScriptEnabled` [bool]? *(optional)*# Whether or not to enable JavaScript in the context. Defaults to `true`. Learn more about [disabling JavaScript](../emulation.mdx#javascript-enabled). @@ -570,6 +573,9 @@ await Browser.NewPageAsync(options); - `RecordVideoDir` [string]? *(optional)*# Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make sure to call [BrowserContext.CloseAsync()](/api/class-browsercontext.mdx#browser-context-close) for videos to be saved. + - `RecordVideoFps` [int]? *(optional)* Added in: v1.64# + + Frame rate of the recorded videos in frames per second. Defaults to `25`. Firefox and WebKit currently capture up to 25 frames per second. - `RecordVideoSize` RecordVideoSize? *(optional)*# - `Width` [int] diff --git a/dotnet/docs/api/class-browsertype.mdx b/dotnet/docs/api/class-browsertype.mdx index 7cb0119cf7..2e7f608788 100644 --- a/dotnet/docs/api/class-browsertype.mdx +++ b/dotnet/docs/api/class-browsertype.mdx @@ -327,7 +327,7 @@ await BrowserType.LaunchPersistentContextAsync(userDataDir, options); - `ChromiumSandbox` [bool]? *(optional)*# Enable Chromium sandboxing. Defaults to `false`. - - `ClientCertificates` [IEnumerable]?<ClientCertificates> *(optional)* Added in: 1.46# + - `ClientCertificates` [IEnumerable]?<ClientCertificates> *(optional)* Added in: v1.46# - `Origin` [string] Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port. @@ -451,7 +451,7 @@ await BrowserType.LaunchPersistentContextAsync(userDataDir, options); Whether to ignore HTTPS errors when sending network requests. Defaults to `false`. - `IsMobile` [bool]? *(optional)*# - Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more about [mobile emulation](../emulation.mdx#ismobile). + Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, so you don't actually need to set it manually. Defaults to `false`. Learn more about [mobile emulation](../emulation.mdx#ismobile). - `JavaScriptEnabled` [bool]? *(optional)*# Whether or not to enable JavaScript in the context. Defaults to `true`. Learn more about [disabling JavaScript](../emulation.mdx#javascript-enabled). @@ -495,6 +495,9 @@ await BrowserType.LaunchPersistentContextAsync(userDataDir, options); - `RecordVideoDir` [string]? *(optional)*# Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make sure to call [BrowserContext.CloseAsync()](/api/class-browsercontext.mdx#browser-context-close) for videos to be saved. + - `RecordVideoFps` [int]? *(optional)* Added in: v1.64# + + Frame rate of the recorded videos in frames per second. Defaults to `25`. Firefox and WebKit currently capture up to 25 frames per second. - `RecordVideoSize` RecordVideoSize? *(optional)*# - `Width` [int] diff --git a/dotnet/docs/api/class-cdpsession.mdx b/dotnet/docs/api/class-cdpsession.mdx index 10de76efcf..2058914207 100644 --- a/dotnet/docs/api/class-cdpsession.mdx +++ b/dotnet/docs/api/class-cdpsession.mdx @@ -49,7 +49,7 @@ await CdpSession.DetachAsync(); ### Event {/* #cdp-session-event */} -Added in: v.1.30cdpSession.Event +Added in: v1.30cdpSession.Event Returns an event emitter for the given CDP event name. @@ -60,7 +60,7 @@ CdpSession.Event(eventName); ``` **Arguments** -- `eventName` [string] Added in: v1.30# +- `eventName` [string]# CDP event name. diff --git a/dotnet/docs/api/class-cdpsessionevent.mdx b/dotnet/docs/api/class-cdpsessionevent.mdx index d9c30181e3..8a319e9af6 100644 --- a/dotnet/docs/api/class-cdpsessionevent.mdx +++ b/dotnet/docs/api/class-cdpsessionevent.mdx @@ -18,7 +18,7 @@ Each object represents a named event and allows handling of the event when it is ### EventName {/* #cdp-session-event-event-name */} -Added in: 1.30cdpSessionEvent.EventName +Added in: v1.30cdpSessionEvent.EventName **Usage** diff --git a/dotnet/docs/api/class-clock.mdx b/dotnet/docs/api/class-clock.mdx index 83c0f35fb6..c5e28578f4 100644 --- a/dotnet/docs/api/class-clock.mdx +++ b/dotnet/docs/api/class-clock.mdx @@ -45,6 +45,7 @@ await page.Clock.FastForwardAsync("30:00"); Install fake implementations for the following time-related functions: * `Date` +* `Temporal.Now` * `setTimeout` * `clearTimeout` * `setInterval` diff --git a/dotnet/docs/api/class-frame.mdx b/dotnet/docs/api/class-frame.mdx index f5c30fa9b9..57949fa4c0 100644 --- a/dotnet/docs/api/class-frame.mdx +++ b/dotnet/docs/api/class-frame.mdx @@ -136,9 +136,15 @@ Gets the full HTML contents of the frame, including the doctype. **Usage** ```csharp -await Frame.ContentAsync(); +await Frame.ContentAsync(options); ``` +**Arguments** +- `options` `FrameContentOptions?` *(optional)* + - `IncludeShadow` [bool]? *(optional)* Added in: v1.64# + + When true, contents of open shadow roots are included as [declarative shadow DOM](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM#declaratively_with_html), i.e. `