diff --git a/dotnet/docs/actionability.mdx b/dotnet/docs/actionability.mdx index b68458fe58..7f5775c1f2 100644 --- a/dotnet/docs/actionability.mdx +++ b/dotnet/docs/actionability.mdx @@ -147,7 +147,6 @@ For example, consider a scenario where Playwright will click `Sign Up` button re [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -155,6 +154,7 @@ For example, consider a scenario where Playwright will click `Sign Up` button re [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api-testing.mdx b/dotnet/docs/api-testing.mdx index 3316d14b64..590d5003a9 100644 --- a/dotnet/docs/api-testing.mdx +++ b/dotnet/docs/api-testing.mdx @@ -439,7 +439,6 @@ var context = await Browser.NewContextAsync(new() { StorageState = state }); [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -447,6 +446,7 @@ var context = await Browser.NewContextAsync(new() { StorageState = state }); [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-apirequest.mdx b/dotnet/docs/api/class-apirequest.mdx index d860ececfb..3c3be17438 100644 --- a/dotnet/docs/api/class-apirequest.mdx +++ b/dotnet/docs/api/class-apirequest.mdx @@ -156,7 +156,6 @@ await ApiRequest.NewContextAsync(options); [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -164,6 +163,7 @@ await ApiRequest.NewContextAsync(options); [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-apirequestcontext.mdx b/dotnet/docs/api/class-apirequestcontext.mdx index 6a7eb86d97..6b05b48d15 100644 --- a/dotnet/docs/api/class-apirequestcontext.mdx +++ b/dotnet/docs/api/class-apirequestcontext.mdx @@ -590,7 +590,6 @@ await ApiRequestContext.StorageStateAsync(options); [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -598,6 +597,7 @@ await ApiRequestContext.StorageStateAsync(options); [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-apiresponse.mdx b/dotnet/docs/api/class-apiresponse.mdx index e542ebdb3c..6beb295061 100644 --- a/dotnet/docs/api/class-apiresponse.mdx +++ b/dotnet/docs/api/class-apiresponse.mdx @@ -215,7 +215,6 @@ ApiResponse.Url [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -223,6 +222,7 @@ ApiResponse.Url [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-apiresponseassertions.mdx b/dotnet/docs/api/class-apiresponseassertions.mdx index 3938e17b6b..e7744a6df1 100644 --- a/dotnet/docs/api/class-apiresponseassertions.mdx +++ b/dotnet/docs/api/class-apiresponseassertions.mdx @@ -93,7 +93,6 @@ await Expect(response).Not.ToBeOKAsync(); [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -101,6 +100,7 @@ await Expect(response).Not.ToBeOKAsync(); [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-browser.mdx b/dotnet/docs/api/class-browser.mdx index 4e1fe18eb3..c510bda33c 100644 --- a/dotnet/docs/api/class-browser.mdx +++ b/dotnet/docs/api/class-browser.mdx @@ -648,7 +648,6 @@ Browser.Disconnected += async (_, browser) => {}; [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -656,6 +655,7 @@ Browser.Disconnected += async (_, browser) => {}; [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-browsercontext.mdx b/dotnet/docs/api/class-browsercontext.mdx index fd7be2c74b..e59d575abb 100644 --- a/dotnet/docs/api/class-browsercontext.mdx +++ b/dotnet/docs/api/class-browsercontext.mdx @@ -1343,7 +1343,6 @@ BrowserContext.BackgroundPages [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -1351,6 +1350,7 @@ BrowserContext.BackgroundPages [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-browsertype.mdx b/dotnet/docs/api/class-browsertype.mdx index 912388f227..c17c9ca119 100644 --- a/dotnet/docs/api/class-browsertype.mdx +++ b/dotnet/docs/api/class-browsertype.mdx @@ -584,7 +584,6 @@ BrowserType.Name [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -592,6 +591,7 @@ BrowserType.Name [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-cdpsession.mdx b/dotnet/docs/api/class-cdpsession.mdx index f57fbf366e..aebbb0cc23 100644 --- a/dotnet/docs/api/class-cdpsession.mdx +++ b/dotnet/docs/api/class-cdpsession.mdx @@ -134,7 +134,6 @@ CdpSession.Close += async (_, cDPSession) => {}; [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -142,6 +141,7 @@ CdpSession.Close += async (_, cDPSession) => {}; [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-cdpsessionevent.mdx b/dotnet/docs/api/class-cdpsessionevent.mdx index 2631cba87e..6e297e9406 100644 --- a/dotnet/docs/api/class-cdpsessionevent.mdx +++ b/dotnet/docs/api/class-cdpsessionevent.mdx @@ -71,7 +71,6 @@ CdpSessionEvent.OnEvent += async (_, jsonElement) => {}; [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -79,6 +78,7 @@ CdpSessionEvent.OnEvent += async (_, jsonElement) => {}; [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-clock.mdx b/dotnet/docs/api/class-clock.mdx index 7f4423b600..a444ade601 100644 --- a/dotnet/docs/api/class-clock.mdx +++ b/dotnet/docs/api/class-clock.mdx @@ -214,7 +214,6 @@ await page.Clock.SetSystemTimeAsync("2020-02-02"); [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -222,6 +221,7 @@ await page.Clock.SetSystemTimeAsync("2020-02-02"); [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-consolemessage.mdx b/dotnet/docs/api/class-consolemessage.mdx index a1801914b5..b39243d75f 100644 --- a/dotnet/docs/api/class-consolemessage.mdx +++ b/dotnet/docs/api/class-consolemessage.mdx @@ -176,7 +176,6 @@ ConsoleMessage.Worker [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -184,6 +183,7 @@ ConsoleMessage.Worker [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-debugger.mdx b/dotnet/docs/api/class-debugger.mdx index 70de6aaccc..f1ff02ea9e 100644 --- a/dotnet/docs/api/class-debugger.mdx +++ b/dotnet/docs/api/class-debugger.mdx @@ -31,32 +31,11 @@ await Debugger.NextAsync(); --- -### PauseAsync {#debugger-pause} - -Added in: v1.59debugger.PauseAsync - -Configures the debugger to pause before the next action is executed. - -Throws if the debugger is already paused. Use [Debugger.NextAsync()](/api/class-debugger.mdx#debugger-next) or [Debugger.RunToAsync()](/api/class-debugger.mdx#debugger-run-to) to step while paused. - -Note that [Page.PauseAsync()](/api/class-page.mdx#page-pause) is equivalent to a "debugger" statement — it pauses execution at the call site immediately. On the contrary, [Debugger.PauseAsync()](/api/class-debugger.mdx#debugger-pause) is equivalent to "pause on next statement" — it configures the debugger to pause before the next action is executed. - -**Usage** - -```csharp -await Debugger.PauseAsync(); -``` - -**Returns** -- [void]# - ---- - ### PausedDetails {#debugger-paused-details} Added in: v1.59debugger.PausedDetails -Returns details about the currently paused calls. Returns an empty array if the debugger is not paused. +Returns details about the currently paused call. Returns `null` if the debugger is not paused. **Usage** @@ -65,7 +44,7 @@ Debugger.PausedDetails ``` **Returns** -- [IReadOnlyList]<PausedDetails># +- PausedDetails?# - `location` Location - `file` [string] @@ -80,6 +59,27 @@ Debugger.PausedDetails - `title` [string] +--- + +### RequestPauseAsync {#debugger-request-pause} + +Added in: v1.59debugger.RequestPauseAsync + +Configures the debugger to pause before the next action is executed. + +Throws if the debugger is already paused. Use [Debugger.NextAsync()](/api/class-debugger.mdx#debugger-next) or [Debugger.RunToAsync()](/api/class-debugger.mdx#debugger-run-to) to step while paused. + +Note that [Page.PauseAsync()](/api/class-page.mdx#page-pause) is equivalent to a "debugger" statement — it pauses execution at the call site immediately. On the contrary, [Debugger.RequestPauseAsync()](/api/class-debugger.mdx#debugger-request-pause) is equivalent to "pause on next statement" — it configures the debugger to pause before the next action is executed. + +**Usage** + +```csharp +await Debugger.RequestPauseAsync(); +``` + +**Returns** +- [void]# + --- ### ResumeAsync {#debugger-resume} @@ -168,7 +168,6 @@ Debugger.PausedStateChanged += async (_, void) => {}; [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -176,6 +175,7 @@ Debugger.PausedStateChanged += async (_, void) => {}; [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-dialog.mdx b/dotnet/docs/api/class-dialog.mdx index d08c7bcaef..a82f613bc8 100644 --- a/dotnet/docs/api/class-dialog.mdx +++ b/dotnet/docs/api/class-dialog.mdx @@ -173,7 +173,6 @@ Dialog.Type [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -181,6 +180,7 @@ Dialog.Type [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-download.mdx b/dotnet/docs/api/class-download.mdx index a5b897a31f..40e27bba72 100644 --- a/dotnet/docs/api/class-download.mdx +++ b/dotnet/docs/api/class-download.mdx @@ -216,7 +216,6 @@ Download.Url [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -224,6 +223,7 @@ Download.Url [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-elementhandle.mdx b/dotnet/docs/api/class-elementhandle.mdx index d7b7c5c402..d822b15a5c 100644 --- a/dotnet/docs/api/class-elementhandle.mdx +++ b/dotnet/docs/api/class-elementhandle.mdx @@ -1602,7 +1602,6 @@ This method does not work across navigations, use [Page.WaitForSelectorAsync()]( [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -1610,6 +1609,7 @@ This method does not work across navigations, use [Page.WaitForSelectorAsync()]( [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-filechooser.mdx b/dotnet/docs/api/class-filechooser.mdx index cddf493d6d..1862ccf44c 100644 --- a/dotnet/docs/api/class-filechooser.mdx +++ b/dotnet/docs/api/class-filechooser.mdx @@ -137,7 +137,6 @@ await FileChooser.SetFilesAsync(files, options); [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -145,6 +144,7 @@ await FileChooser.SetFilesAsync(files, options); [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-formdata.mdx b/dotnet/docs/api/class-formdata.mdx index 0e56d5aa05..4bf909aa2a 100644 --- a/dotnet/docs/api/class-formdata.mdx +++ b/dotnet/docs/api/class-formdata.mdx @@ -143,7 +143,6 @@ FormData.Set(name, value); [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -151,6 +150,7 @@ FormData.Set(name, value); [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-frame.mdx b/dotnet/docs/api/class-frame.mdx index 0351e776a7..25c39b3e46 100644 --- a/dotnet/docs/api/class-frame.mdx +++ b/dotnet/docs/api/class-frame.mdx @@ -2716,7 +2716,6 @@ await Frame.WaitForTimeoutAsync(timeout); [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -2724,6 +2723,7 @@ await Frame.WaitForTimeoutAsync(timeout); [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-framelocator.mdx b/dotnet/docs/api/class-framelocator.mdx index 93d846e528..28a61d113e 100644 --- a/dotnet/docs/api/class-framelocator.mdx +++ b/dotnet/docs/api/class-framelocator.mdx @@ -556,7 +556,6 @@ FrameLocator.Nth(index); [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -564,6 +563,7 @@ FrameLocator.Nth(index); [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-jshandle.mdx b/dotnet/docs/api/class-jshandle.mdx index bab75da285..9e1fa7011f 100644 --- a/dotnet/docs/api/class-jshandle.mdx +++ b/dotnet/docs/api/class-jshandle.mdx @@ -207,7 +207,6 @@ await JsHandle.JsonValueAsync(); [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -215,6 +214,7 @@ await JsHandle.JsonValueAsync(); [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-keyboard.mdx b/dotnet/docs/api/class-keyboard.mdx index 999334b0d2..6aa4f3aa39 100644 --- a/dotnet/docs/api/class-keyboard.mdx +++ b/dotnet/docs/api/class-keyboard.mdx @@ -250,7 +250,6 @@ await Keyboard.UpAsync(key); [Locator]: /api/class-locator.mdx "Locator" [LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" [Mouse]: /api/class-mouse.mdx "Mouse" -[Overlay]: /api/class-overlay.mdx "Overlay" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" [Playwright]: /api/class-playwright.mdx "Playwright" @@ -258,6 +257,7 @@ await Keyboard.UpAsync(key); [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" +[Screencast]: /api/class-screencast.mdx "Screencast" [Selectors]: /api/class-selectors.mdx "Selectors" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" diff --git a/dotnet/docs/api/class-locator.mdx b/dotnet/docs/api/class-locator.mdx index 89745735ea..f6ba02c476 100644 --- a/dotnet/docs/api/class-locator.mdx +++ b/dotnet/docs/api/class-locator.mdx @@ -130,7 +130,7 @@ await page.GetByRole(AriaRole.Link).AriaSnapshotAsync(); When specified, limits the depth of the snapshot. - `Mode` `enum AriaSnapshotMode { Ai, Default }?` *(optional)* Added in: v1.59# - When set to `"ai"`, returns a snapshot optimized for AI consumption with element references. Defaults to `"default"`. + When set to `"ai"`, returns a snapshot optimized for AI consumption. Defaults to `"default"`. See details for more information. - `Timeout` [float]? *(optional)*# Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can be changed by using the [BrowserContext.SetDefaultTimeout()](/api/class-browsercontext.mdx#browser-context-set-default-timeout) or [Page.SetDefaultTimeout()](/api/class-page.mdx#page-set-default-timeout) methods. @@ -164,6 +164,9 @@ Below is the HTML markup and the respective ARIA snapshot: - link "About" ``` +An AI-optimized snapshot, controlled by [Mode](/api/class-locator.mdx#locator-aria-snapshot-option-mode), is different from a default snapshot: +1. Includes element references `[ref=e2]`. 2. Does not wait for an element matching the locator, and throws when no elements match. 3. Includes snapshots of `