diff --git a/dotnet/docs/actionability.mdx b/dotnet/docs/actionability.mdx index 7c8fabf3915..8dd05fd6185 100644 --- a/dotnet/docs/actionability.mdx +++ b/dotnet/docs/actionability.mdx @@ -132,6 +132,7 @@ For example, consider a scenario where Playwright will click `Sign Up` button re [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api-testing.mdx b/dotnet/docs/api-testing.mdx index 89bd74d00fe..8e33d195ca3 100644 --- a/dotnet/docs/api-testing.mdx +++ b/dotnet/docs/api-testing.mdx @@ -437,6 +437,7 @@ var context = await Browser.NewContextAsync(new() { StorageState = state }); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-accessibility.mdx b/dotnet/docs/api/class-accessibility.mdx index c2ed19df9e3..d9122e78caf 100644 --- a/dotnet/docs/api/class-accessibility.mdx +++ b/dotnet/docs/api/class-accessibility.mdx @@ -91,6 +91,7 @@ Console.WriteLine(System.Text.Json.JsonSerializer.Serialize(accessibilitySnapsho [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-apirequest.mdx b/dotnet/docs/api/class-apirequest.mdx index 75ca37758e2..2363a8578d8 100644 --- a/dotnet/docs/api/class-apirequest.mdx +++ b/dotnet/docs/api/class-apirequest.mdx @@ -109,6 +109,7 @@ await ApiRequest.NewContextAsync(options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-apirequestcontext.mdx b/dotnet/docs/api/class-apirequestcontext.mdx index 92a4912bf4b..5ce7c25e713 100644 --- a/dotnet/docs/api/class-apirequestcontext.mdx +++ b/dotnet/docs/api/class-apirequestcontext.mdx @@ -535,6 +535,7 @@ await ApiRequestContext.StorageStateAsync(options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-apiresponse.mdx b/dotnet/docs/api/class-apiresponse.mdx index d0362ae948b..e736126e234 100644 --- a/dotnet/docs/api/class-apiresponse.mdx +++ b/dotnet/docs/api/class-apiresponse.mdx @@ -213,6 +213,7 @@ ApiResponse.Url [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-apiresponseassertions.mdx b/dotnet/docs/api/class-apiresponseassertions.mdx index 9c9a5f6e177..aef61afd53a 100644 --- a/dotnet/docs/api/class-apiresponseassertions.mdx +++ b/dotnet/docs/api/class-apiresponseassertions.mdx @@ -67,6 +67,7 @@ Expect(Response).Not [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-browser.mdx b/dotnet/docs/api/class-browser.mdx index c8496e5eb85..7407c57d181 100644 --- a/dotnet/docs/api/class-browser.mdx +++ b/dotnet/docs/api/class-browser.mdx @@ -556,6 +556,7 @@ Browser.Disconnected += async data => {}; [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-browsercontext.mdx b/dotnet/docs/api/class-browsercontext.mdx index fbed3b09968..2c14d262115 100644 --- a/dotnet/docs/api/class-browsercontext.mdx +++ b/dotnet/docs/api/class-browsercontext.mdx @@ -971,6 +971,23 @@ BrowserContext.Page += async data => {}; --- +### event PageError {#browser-context-event-page-error} + +Added in: v1.38browserContext.event PageError + +Emitted when unhandled exceptions occur on any pages created through this context. To only listen for `pageError` events from a particular page, use [Page.PageError](/api/class-page.mdx#page-event-page-error). + +**Usage** + +```csharp +BrowserContext.PageError += async data => {}; +``` + +**Event data** +- [PageError] + +--- + ### event Request {#browser-context-event-request} Added in: v1.12browserContext.event Request @@ -1069,6 +1086,7 @@ BrowserContext.Response += async data => {}; [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-browsertype.mdx b/dotnet/docs/api/class-browsertype.mdx index e7e9b51ffc3..2cfe144b4a4 100644 --- a/dotnet/docs/api/class-browsertype.mdx +++ b/dotnet/docs/api/class-browsertype.mdx @@ -491,6 +491,7 @@ BrowserType.Name [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-cdpsession.mdx b/dotnet/docs/api/class-cdpsession.mdx index 98f62dd7aad..f5d4a21b6c9 100644 --- a/dotnet/docs/api/class-cdpsession.mdx +++ b/dotnet/docs/api/class-cdpsession.mdx @@ -114,6 +114,7 @@ await CdpSession.SendAsync(method, params); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-cdpsessionevent.mdx b/dotnet/docs/api/class-cdpsessionevent.mdx index 6791d01cb94..35a3549ee80 100644 --- a/dotnet/docs/api/class-cdpsessionevent.mdx +++ b/dotnet/docs/api/class-cdpsessionevent.mdx @@ -72,6 +72,7 @@ CdpSessionEvent.OnEvent += async data => {}; [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-consolemessage.mdx b/dotnet/docs/api/class-consolemessage.mdx index 83933897899..4216a723729 100644 --- a/dotnet/docs/api/class-consolemessage.mdx +++ b/dotnet/docs/api/class-consolemessage.mdx @@ -143,6 +143,7 @@ ConsoleMessage.Type [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-dialog.mdx b/dotnet/docs/api/class-dialog.mdx index 5464d8340f2..5b1742c17e0 100644 --- a/dotnet/docs/api/class-dialog.mdx +++ b/dotnet/docs/api/class-dialog.mdx @@ -168,6 +168,7 @@ Dialog.Type [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-download.mdx b/dotnet/docs/api/class-download.mdx index f0a4a2b7e9e..b4ee9569bc3 100644 --- a/dotnet/docs/api/class-download.mdx +++ b/dotnet/docs/api/class-download.mdx @@ -203,6 +203,7 @@ Download.Url [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-elementhandle.mdx b/dotnet/docs/api/class-elementhandle.mdx index 76362a8d032..139a7405589 100644 --- a/dotnet/docs/api/class-elementhandle.mdx +++ b/dotnet/docs/api/class-elementhandle.mdx @@ -1264,6 +1264,7 @@ This method does not work across navigations, use [Page.WaitForSelectorAsync()]( [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-filechooser.mdx b/dotnet/docs/api/class-filechooser.mdx index 4f13a279662..c84d628aefa 100644 --- a/dotnet/docs/api/class-filechooser.mdx +++ b/dotnet/docs/api/class-filechooser.mdx @@ -130,6 +130,7 @@ await FileChooser.SetFilesAsync(files, options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-formdata.mdx b/dotnet/docs/api/class-formdata.mdx index ee2cf495de8..c3539aec438 100644 --- a/dotnet/docs/api/class-formdata.mdx +++ b/dotnet/docs/api/class-formdata.mdx @@ -72,6 +72,7 @@ FormData.Set(name, value); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-frame.mdx b/dotnet/docs/api/class-frame.mdx index d29cac2d2be..fe178453bc4 100644 --- a/dotnet/docs/api/class-frame.mdx +++ b/dotnet/docs/api/class-frame.mdx @@ -2588,6 +2588,7 @@ await Frame.WaitForTimeoutAsync(timeout); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-framelocator.mdx b/dotnet/docs/api/class-framelocator.mdx index 92913384c86..5b2d28257bc 100644 --- a/dotnet/docs/api/class-framelocator.mdx +++ b/dotnet/docs/api/class-framelocator.mdx @@ -507,6 +507,7 @@ FrameLocator.Nth(index); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-jshandle.mdx b/dotnet/docs/api/class-jshandle.mdx index e5c99b5e210..bd3975cc737 100644 --- a/dotnet/docs/api/class-jshandle.mdx +++ b/dotnet/docs/api/class-jshandle.mdx @@ -204,6 +204,7 @@ await JsHandle.JsonValueAsync(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-keyboard.mdx b/dotnet/docs/api/class-keyboard.mdx index cb2924ae8e6..d9e4d52a734 100644 --- a/dotnet/docs/api/class-keyboard.mdx +++ b/dotnet/docs/api/class-keyboard.mdx @@ -228,6 +228,7 @@ await Keyboard.UpAsync(key); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-locator.mdx b/dotnet/docs/api/class-locator.mdx index 8ddd29d834f..2e025a4a785 100644 --- a/dotnet/docs/api/class-locator.mdx +++ b/dotnet/docs/api/class-locator.mdx @@ -2138,6 +2138,7 @@ await Locator.ElementHandlesAsync(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-locatorassertions.mdx b/dotnet/docs/api/class-locatorassertions.mdx index 6c9e190fd23..0debd4308b2 100644 --- a/dotnet/docs/api/class-locatorassertions.mdx +++ b/dotnet/docs/api/class-locatorassertions.mdx @@ -652,6 +652,7 @@ Expect(Locator).Not [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-mouse.mdx b/dotnet/docs/api/class-mouse.mdx index 1e18d47dc92..df76006fcb0 100644 --- a/dotnet/docs/api/class-mouse.mdx +++ b/dotnet/docs/api/class-mouse.mdx @@ -197,6 +197,7 @@ await Mouse.WheelAsync(deltaX, deltaY); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-page.mdx b/dotnet/docs/api/class-page.mdx index c11fea0682a..87ad79eaad7 100644 --- a/dotnet/docs/api/class-page.mdx +++ b/dotnet/docs/api/class-page.mdx @@ -4500,6 +4500,7 @@ await page.WaitForTimeoutAsync(1000); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-pageassertions.mdx b/dotnet/docs/api/class-pageassertions.mdx index fbcc13d2c48..a3fe87d216a 100644 --- a/dotnet/docs/api/class-pageassertions.mdx +++ b/dotnet/docs/api/class-pageassertions.mdx @@ -128,6 +128,7 @@ Expect(Page).Not [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-pageerror.mdx b/dotnet/docs/api/class-pageerror.mdx new file mode 100644 index 00000000000..a6c002b8a88 --- /dev/null +++ b/dotnet/docs/api/class-pageerror.mdx @@ -0,0 +1,127 @@ +--- +id: class-pageerror +title: "PageError" +--- +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +import HTMLCard from '@site/src/components/HTMLCard'; + + +[PageError] class represents objects created by context when there are unhandled execeptions thrown on the pages and dispatched via the [BrowserContext.PageError](/api/class-browsercontext.mdx#browser-context-event-page-error) event. + +```csharp +// Log all uncaught errors to the terminal +context.PageError += (_, pageerror) => +{ + Console.WriteLine("Uncaught exception: " + pageerror.Error); +}; +``` + + +--- + +## Methods + +### Error {#page-error-error} + +Added in: v1.38pageError.Error + +Unhandled error that was thrown. + +**Usage** + +```csharp +PageError.Error +``` + +**Returns** +- [Error]# + +--- + +### Page {#page-error-page} + +Added in: v1.38pageError.Page + +The page that produced this unhandled exception, if any. + +**Usage** + +```csharp +PageError.Page +``` + +**Returns** +- [Page]?# + + +[Accessibility]: /api/class-accessibility.mdx "Accessibility" +[APIRequest]: /api/class-apirequest.mdx "APIRequest" +[APIRequestContext]: /api/class-apirequestcontext.mdx "APIRequestContext" +[APIResponse]: /api/class-apiresponse.mdx "APIResponse" +[APIResponseAssertions]: /api/class-apiresponseassertions.mdx "APIResponseAssertions" +[Browser]: /api/class-browser.mdx "Browser" +[BrowserContext]: /api/class-browsercontext.mdx "BrowserContext" +[BrowserType]: /api/class-browsertype.mdx "BrowserType" +[CDPSession]: /api/class-cdpsession.mdx "CDPSession" +[CDPSessionEvent]: /api/class-cdpsessionevent.mdx "CDPSessionEvent" +[ConsoleMessage]: /api/class-consolemessage.mdx "ConsoleMessage" +[Dialog]: /api/class-dialog.mdx "Dialog" +[Download]: /api/class-download.mdx "Download" +[ElementHandle]: /api/class-elementhandle.mdx "ElementHandle" +[FileChooser]: /api/class-filechooser.mdx "FileChooser" +[FormData]: /api/class-formdata.mdx "FormData" +[Frame]: /api/class-frame.mdx "Frame" +[FrameLocator]: /api/class-framelocator.mdx "FrameLocator" +[JSHandle]: /api/class-jshandle.mdx "JSHandle" +[Keyboard]: /api/class-keyboard.mdx "Keyboard" +[Locator]: /api/class-locator.mdx "Locator" +[LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" +[Mouse]: /api/class-mouse.mdx "Mouse" +[Page]: /api/class-page.mdx "Page" +[PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" +[Playwright]: /api/class-playwright.mdx "Playwright" +[PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" +[Request]: /api/class-request.mdx "Request" +[Response]: /api/class-response.mdx "Response" +[Route]: /api/class-route.mdx "Route" +[Selectors]: /api/class-selectors.mdx "Selectors" +[TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" +[Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" +[Tracing]: /api/class-tracing.mdx "Tracing" +[Video]: /api/class-video.mdx "Video" +[WebSocket]: /api/class-websocket.mdx "WebSocket" +[WebSocketFrame]: /api/class-websocketframe.mdx "WebSocketFrame" +[Worker]: /api/class-worker.mdx "Worker" +[Element]: https://developer.mozilla.org/en-US/docs/Web/API/element "Element" +[EvaluationArgument]: /evaluating.mdx#evaluation-argument "EvaluationArgument" +[Promise]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise "Promise" +[iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols "Iterator" +[origin]: https://developer.mozilla.org/en-US/docs/Glossary/Origin "Origin" +[selector]: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors "selector" +[Serializable]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#Description "Serializable" +[UIEvent.detail]: https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail "UIEvent.detail" +[UnixTime]: https://en.wikipedia.org/wiki/Unix_time "Unix Time" +[xpath]: https://developer.mozilla.org/en-US/docs/Web/XPath "xpath" + +[bool]: https://docs.microsoft.com/en-us/dotnet/api/system.boolean "bool" +[double]: https://docs.microsoft.com/en-us/dotnet/api/system.double "double" +[byte]: https://docs.microsoft.com/en-us/dotnet/api/system.byte "byte" +[int]: https://docs.microsoft.com/en-us/dotnet/api/system.int32 "int" +[void]: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/void "void" +[string]: https://docs.microsoft.com/en-us/dotnet/api/system.string "string" +[URL]: https://nodejs.org/api/url.html "URL" +[Regex]: https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex "Regex" + +[Action]: https://docs.microsoft.com/en-us/dotnet/api/system.action-1 "Action" +[Func]: https://docs.microsoft.com/en-us/dotnet/api/system.func-2 "Func" +[IEnumerable]: https://docs.microsoft.com/en-us/dotnet/api/system.collections.ienumerable "IEnumerable" +[IDictionary]: https://docs.microsoft.com/en-us/dotnet/api/system.collections.idictionary "IDictionary" +[Task]: https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task?view=net-5.0 "Task" +[IReadOnlyDictionary]: https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlydictionary-2 "IReadOnlyDictionary" +[JsonElement]: https://docs.microsoft.com/en-us/dotnet/api/system.text.json.jsonelement "JsonElement" + +[all available image tags]: https://mcr.microsoft.com/en-us/product/playwright/dotnet/about "all available image tags" +[Microsoft Artifact Registry]: https://mcr.microsoft.com/en-us/product/playwright/dotnet/about "Microsoft Artifact Registry" +[Dockerfile.jammy]: https://github.com/microsoft/playwright-dotnet/blob/main/utils/docker/Dockerfile.jammy "Dockerfile.jammy" diff --git a/dotnet/docs/api/class-playwright.mdx b/dotnet/docs/api/class-playwright.mdx index 6deca04dc62..8ac7f1c3893 100644 --- a/dotnet/docs/api/class-playwright.mdx +++ b/dotnet/docs/api/class-playwright.mdx @@ -177,6 +177,7 @@ Playwright.Webkit [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-playwrightassertions.mdx b/dotnet/docs/api/class-playwrightassertions.mdx index 11af99c008b..459ed1dd8ac 100644 --- a/dotnet/docs/api/class-playwrightassertions.mdx +++ b/dotnet/docs/api/class-playwrightassertions.mdx @@ -125,6 +125,7 @@ await Expect(page).ToHaveTitleAsync("News"); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-request.mdx b/dotnet/docs/api/class-request.mdx index 5ea98cbd829..da139ee163e 100644 --- a/dotnet/docs/api/class-request.mdx +++ b/dotnet/docs/api/class-request.mdx @@ -430,6 +430,7 @@ Request.Url [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-response.mdx b/dotnet/docs/api/class-response.mdx index 872ff267b4c..b76cc5b2a8c 100644 --- a/dotnet/docs/api/class-response.mdx +++ b/dotnet/docs/api/class-response.mdx @@ -382,6 +382,7 @@ Response.Url [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-route.mdx b/dotnet/docs/api/class-route.mdx index 7a0de47080f..1978452e8f7 100644 --- a/dotnet/docs/api/class-route.mdx +++ b/dotnet/docs/api/class-route.mdx @@ -307,6 +307,7 @@ Route.Request [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-selectors.mdx b/dotnet/docs/api/class-selectors.mdx index 5bc954dc929..0bdf2ee7388 100644 --- a/dotnet/docs/api/class-selectors.mdx +++ b/dotnet/docs/api/class-selectors.mdx @@ -114,6 +114,7 @@ Selectors.SetTestIdAttribute(attributeName); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-timeouterror.mdx b/dotnet/docs/api/class-timeouterror.mdx index 6b7c262bc0a..f4e7a076e7b 100644 --- a/dotnet/docs/api/class-timeouterror.mdx +++ b/dotnet/docs/api/class-timeouterror.mdx @@ -53,6 +53,7 @@ catch (TimeoutException) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-touchscreen.mdx b/dotnet/docs/api/class-touchscreen.mdx index 44bcf286bb5..b117052c586 100644 --- a/dotnet/docs/api/class-touchscreen.mdx +++ b/dotnet/docs/api/class-touchscreen.mdx @@ -60,6 +60,7 @@ await Touchscreen.TapAsync(x, y); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-tracing.mdx b/dotnet/docs/api/class-tracing.mdx index 4b10959add4..1a3e45a7e0a 100644 --- a/dotnet/docs/api/class-tracing.mdx +++ b/dotnet/docs/api/class-tracing.mdx @@ -189,6 +189,7 @@ await Tracing.StopChunkAsync(options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-video.mdx b/dotnet/docs/api/class-video.mdx index b6be922fb2e..84d4f4563da 100644 --- a/dotnet/docs/api/class-video.mdx +++ b/dotnet/docs/api/class-video.mdx @@ -92,6 +92,7 @@ await Video.SaveAsAsync(path); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-websocket.mdx b/dotnet/docs/api/class-websocket.mdx index 8a32c9c09d7..acea7da05ee 100644 --- a/dotnet/docs/api/class-websocket.mdx +++ b/dotnet/docs/api/class-websocket.mdx @@ -142,6 +142,7 @@ WebSocket.SocketError += async data => {}; [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-websocketframe.mdx b/dotnet/docs/api/class-websocketframe.mdx index 5ec064ff2ee..30ac29642c0 100644 --- a/dotnet/docs/api/class-websocketframe.mdx +++ b/dotnet/docs/api/class-websocketframe.mdx @@ -72,6 +72,7 @@ WebSocketFrame.Text [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/api/class-worker.mdx b/dotnet/docs/api/class-worker.mdx index 0a24d4a9231..7246ce34c92 100644 --- a/dotnet/docs/api/class-worker.mdx +++ b/dotnet/docs/api/class-worker.mdx @@ -144,6 +144,7 @@ Worker.Close += async data => {}; [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/auth.mdx b/dotnet/docs/auth.mdx index 8a790a85cac..06f6bee3a86 100644 --- a/dotnet/docs/auth.mdx +++ b/dotnet/docs/auth.mdx @@ -141,6 +141,7 @@ await context.AddInitScriptAsync(@"(storage => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/browser-contexts.mdx b/dotnet/docs/browser-contexts.mdx index 152020ed25b..4c71407225f 100644 --- a/dotnet/docs/browser-contexts.mdx +++ b/dotnet/docs/browser-contexts.mdx @@ -81,6 +81,7 @@ class Program [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/browsers.mdx b/dotnet/docs/browsers.mdx index 266355006f3..ea00f868ecc 100644 --- a/dotnet/docs/browsers.mdx +++ b/dotnet/docs/browsers.mdx @@ -491,6 +491,7 @@ pwsh bin/Debug/netX/playwright.ps1 uninstall --all [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/ci.mdx b/dotnet/docs/ci.mdx index 757ca50be4d..3ab49095c76 100644 --- a/dotnet/docs/ci.mdx +++ b/dotnet/docs/ci.mdx @@ -278,6 +278,7 @@ xvfb-run dotnet test [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/codegen-intro.mdx b/dotnet/docs/codegen-intro.mdx index 0b1795878bc..38180dd6154 100644 --- a/dotnet/docs/codegen-intro.mdx +++ b/dotnet/docs/codegen-intro.mdx @@ -83,6 +83,7 @@ You can also generate tests using emulation so as to generate a test for a speci [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/codegen.mdx b/dotnet/docs/codegen.mdx index 975331b94a1..c3650935c1e 100644 --- a/dotnet/docs/codegen.mdx +++ b/dotnet/docs/codegen.mdx @@ -173,6 +173,7 @@ await page.PauseAsync(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/debug.mdx b/dotnet/docs/debug.mdx index f54f5786e8d..a44bca5b9f3 100644 --- a/dotnet/docs/debug.mdx +++ b/dotnet/docs/debug.mdx @@ -288,6 +288,7 @@ await using var browser = await playwright.Chromium.LaunchAsync(new() [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/dialogs.mdx b/dotnet/docs/dialogs.mdx index 6d52b91e83e..319a617e9ba 100644 --- a/dotnet/docs/dialogs.mdx +++ b/dotnet/docs/dialogs.mdx @@ -77,6 +77,7 @@ await page.CloseAsync(runBeforeUnload: true); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/docker.mdx b/dotnet/docs/docker.mdx index 9b54df4da9f..057563e6547 100644 --- a/dotnet/docs/docker.mdx +++ b/dotnet/docs/docker.mdx @@ -122,6 +122,7 @@ Browser builds for Firefox and WebKit are built for the [glibc](https://en.wikip [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/downloads.mdx b/dotnet/docs/downloads.mdx index f5925f4d89d..802f0df2b9d 100644 --- a/dotnet/docs/downloads.mdx +++ b/dotnet/docs/downloads.mdx @@ -66,6 +66,7 @@ For uploading files, see the [uploading files](./input.mdx#upload-files) section [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/emulation.mdx b/dotnet/docs/emulation.mdx index ed631dade56..812e88d7afb 100644 --- a/dotnet/docs/emulation.mdx +++ b/dotnet/docs/emulation.mdx @@ -198,6 +198,7 @@ var context = await browser.NewContextAsync(new() { JavaScriptEnabled = true }); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/evaluating.mdx b/dotnet/docs/evaluating.mdx index 53ad000a6d2..bb1f56c1f4a 100644 --- a/dotnet/docs/evaluating.mdx +++ b/dotnet/docs/evaluating.mdx @@ -107,6 +107,7 @@ var result = await page.EvaluateAsync(@"data => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/events.mdx b/dotnet/docs/events.mdx index 0dcf51efe33..cc9ea4e5a56 100644 --- a/dotnet/docs/events.mdx +++ b/dotnet/docs/events.mdx @@ -75,6 +75,7 @@ await page.GotoAsync("https://www.openstreetmap.org/"); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/extensibility.mdx b/dotnet/docs/extensibility.mdx index ecc43a83f15..09c8476668b 100644 --- a/dotnet/docs/extensibility.mdx +++ b/dotnet/docs/extensibility.mdx @@ -49,6 +49,7 @@ An example of registering selector engine that queries elements based on a tag n [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/frames.mdx b/dotnet/docs/frames.mdx index fc0a1ddc470..c23af249f5e 100644 --- a/dotnet/docs/frames.mdx +++ b/dotnet/docs/frames.mdx @@ -64,6 +64,7 @@ await frame.FillAsync("#username-input", "John"); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/handles.mdx b/dotnet/docs/handles.mdx index 65f3fd44662..a381b393d4a 100644 --- a/dotnet/docs/handles.mdx +++ b/dotnet/docs/handles.mdx @@ -136,6 +136,7 @@ await locator.ClickAsync(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/input.mdx b/dotnet/docs/input.mdx index 5ecc3c75359..3e9a6a3eded 100644 --- a/dotnet/docs/input.mdx +++ b/dotnet/docs/input.mdx @@ -251,6 +251,7 @@ If your page relies on the `dragover` event being dispatched, you need at least [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/intro.mdx b/dotnet/docs/intro.mdx index 6af0a20bd0f..858b318d524 100644 --- a/dotnet/docs/intro.mdx +++ b/dotnet/docs/intro.mdx @@ -222,6 +222,7 @@ See our doc on [Test Runners](./test-runners.mdx) to learn more about running te [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/languages.mdx b/dotnet/docs/languages.mdx index 2b99b5f0184..4bcc03bb8f8 100644 --- a/dotnet/docs/languages.mdx +++ b/dotnet/docs/languages.mdx @@ -58,6 +58,7 @@ Playwright for .NET comes with [NUnit base classes](https://playwright.dev/dotne [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/library.mdx b/dotnet/docs/library.mdx index 7fea45d0bd4..426a680d417 100644 --- a/dotnet/docs/library.mdx +++ b/dotnet/docs/library.mdx @@ -118,6 +118,7 @@ or: [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/locators.mdx b/dotnet/docs/locators.mdx index cca5decd4a6..6f233bb49ee 100644 --- a/dotnet/docs/locators.mdx +++ b/dotnet/docs/locators.mdx @@ -957,6 +957,7 @@ For less commonly used locators, look at the [other locators](./other-locators.m [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/mock.mdx b/dotnet/docs/mock.mdx index a6909252eeb..d8f0134e59e 100644 --- a/dotnet/docs/mock.mdx +++ b/dotnet/docs/mock.mdx @@ -179,6 +179,7 @@ Read more about [advanced networking](./network.mdx). [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/navigations.mdx b/dotnet/docs/navigations.mdx index 9907fb78bd9..a7cd42628ce 100644 --- a/dotnet/docs/navigations.mdx +++ b/dotnet/docs/navigations.mdx @@ -99,6 +99,7 @@ Playwright splits the process of showing a new document in a page into **navigat [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/network.mdx b/dotnet/docs/network.mdx index 1ddb1ac97bd..2403b654d2f 100644 --- a/dotnet/docs/network.mdx +++ b/dotnet/docs/network.mdx @@ -232,6 +232,7 @@ Playwright's built-in [BrowserContext.RouteAsync()](/api/class-browsercontext.md [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/other-locators.mdx b/dotnet/docs/other-locators.mdx index 5fa479bd451..fed91cbc1a0 100644 --- a/dotnet/docs/other-locators.mdx +++ b/dotnet/docs/other-locators.mdx @@ -488,6 +488,7 @@ For example, `css=article >> text=Hello` captures the element with the text `Hel [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/pages.mdx b/dotnet/docs/pages.mdx index 113cf74a2f2..d63d3de3e55 100644 --- a/dotnet/docs/pages.mdx +++ b/dotnet/docs/pages.mdx @@ -121,6 +121,7 @@ page.Popup += async (_, popup) => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/pom.mdx b/dotnet/docs/pom.mdx index 76d4ea1abd2..5429298b497 100644 --- a/dotnet/docs/pom.mdx +++ b/dotnet/docs/pom.mdx @@ -83,6 +83,7 @@ await page.SearchAsync("search query"); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/release-notes.mdx b/dotnet/docs/release-notes.mdx index a40fcc91a41..058a2c763f7 100644 --- a/dotnet/docs/release-notes.mdx +++ b/dotnet/docs/release-notes.mdx @@ -906,6 +906,7 @@ This version of Playwright was also tested against the following stable channels [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/running-tests.mdx b/dotnet/docs/running-tests.mdx index 3c00e0db9a3..4ced3e81f28 100644 --- a/dotnet/docs/running-tests.mdx +++ b/dotnet/docs/running-tests.mdx @@ -130,6 +130,7 @@ Check out our [debugging guide](./debug.mdx) to learn more about the [Playwright [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/screenshots.mdx b/dotnet/docs/screenshots.mdx index af56d2e189a..8ee6a839706 100644 --- a/dotnet/docs/screenshots.mdx +++ b/dotnet/docs/screenshots.mdx @@ -76,6 +76,7 @@ await page.Locator(".header").ScreenshotAsync(new() { Path = "screenshot.png" }) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/selenium-grid.mdx b/dotnet/docs/selenium-grid.mdx index 82837abad60..6eab830fb3a 100644 --- a/dotnet/docs/selenium-grid.mdx +++ b/dotnet/docs/selenium-grid.mdx @@ -147,6 +147,7 @@ This means that Selenium 3 is supported in a best-effort manner, where Playwrigh [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/test-assertions.mdx b/dotnet/docs/test-assertions.mdx index 66ebeb0e913..b6a4a4c070c 100644 --- a/dotnet/docs/test-assertions.mdx +++ b/dotnet/docs/test-assertions.mdx @@ -58,6 +58,7 @@ import HTMLCard from '@site/src/components/HTMLCard'; [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/test-runners.mdx b/dotnet/docs/test-runners.mdx index a75e7504d95..04016267a10 100644 --- a/dotnet/docs/test-runners.mdx +++ b/dotnet/docs/test-runners.mdx @@ -532,6 +532,7 @@ While using xUnit is also supported, we do not support running parallel tests. T [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/trace-viewer-intro.mdx b/dotnet/docs/trace-viewer-intro.mdx index af66453dc00..1f606417c01 100644 --- a/dotnet/docs/trace-viewer-intro.mdx +++ b/dotnet/docs/trace-viewer-intro.mdx @@ -83,6 +83,7 @@ To learn more check out our detailed guide on [Trace Viewer](/trace-viewer.mdx). [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/trace-viewer.mdx b/dotnet/docs/trace-viewer.mdx index 6884cebb24f..3a48332ffcf 100644 --- a/dotnet/docs/trace-viewer.mdx +++ b/dotnet/docs/trace-viewer.mdx @@ -183,6 +183,7 @@ https://trace.playwright.dev/?trace=https://demo.playwright.dev/reports/todomvc/ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/videos.mdx b/dotnet/docs/videos.mdx index 09848a84468..2ef601c018c 100644 --- a/dotnet/docs/videos.mdx +++ b/dotnet/docs/videos.mdx @@ -69,6 +69,7 @@ Note that the video is only available after the page or browser context is close [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/webview2.mdx b/dotnet/docs/webview2.mdx index 59f7a9b4b1f..32b3423aaae 100644 --- a/dotnet/docs/webview2.mdx +++ b/dotnet/docs/webview2.mdx @@ -163,6 +163,7 @@ For debugging tests, see the Playwright [Debugging guide](./debug). [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/why-playwright.mdx b/dotnet/docs/why-playwright.mdx index 3e079723cfb..2aa2eb1b634 100644 --- a/dotnet/docs/why-playwright.mdx +++ b/dotnet/docs/why-playwright.mdx @@ -57,6 +57,7 @@ Playwright enables fast, reliable and capable testing and automation across all [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/dotnet/docs/writing-tests.mdx b/dotnet/docs/writing-tests.mdx index f835eed724c..24972cc24f6 100644 --- a/dotnet/docs/writing-tests.mdx +++ b/dotnet/docs/writing-tests.mdx @@ -265,6 +265,7 @@ public class UnitTest1 : PageTest [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/java/docs/accessibility-testing.mdx b/java/docs/accessibility-testing.mdx index 3748fc577bb..2cdf480874b 100644 --- a/java/docs/accessibility-testing.mdx +++ b/java/docs/accessibility-testing.mdx @@ -266,6 +266,7 @@ public class HomepageTests extends AxeTestFixtures { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -274,6 +275,7 @@ public class HomepageTests extends AxeTestFixtures { [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/actionability.mdx b/java/docs/actionability.mdx index cbd74b442c3..043788be802 100644 --- a/java/docs/actionability.mdx +++ b/java/docs/actionability.mdx @@ -130,6 +130,7 @@ For example, consider a scenario where Playwright will click `Sign Up` button re [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -138,6 +139,7 @@ For example, consider a scenario where Playwright will click `Sign Up` button re [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api-testing.mdx b/java/docs/api-testing.mdx index 760e56ce608..d18f32b5960 100644 --- a/java/docs/api-testing.mdx +++ b/java/docs/api-testing.mdx @@ -459,6 +459,7 @@ BrowserContext context = browser.newContext(new Browser.NewContextOptions().setS [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -467,6 +468,7 @@ BrowserContext context = browser.newContext(new Browser.NewContextOptions().setS [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-apirequest.mdx b/java/docs/api/class-apirequest.mdx index 20961832c8f..4743be66731 100644 --- a/java/docs/api/class-apirequest.mdx +++ b/java/docs/api/class-apirequest.mdx @@ -108,6 +108,7 @@ APIRequest.newContext(options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -116,6 +117,7 @@ APIRequest.newContext(options); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-apirequestcontext.mdx b/java/docs/api/class-apirequestcontext.mdx index ad8e7080e14..628982b7379 100644 --- a/java/docs/api/class-apirequestcontext.mdx +++ b/java/docs/api/class-apirequestcontext.mdx @@ -315,6 +315,7 @@ APIRequestContext.storageState(options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -323,6 +324,7 @@ APIRequestContext.storageState(options); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-apiresponse.mdx b/java/docs/api/class-apiresponse.mdx index 9f50f3e3c44..24f712d4bbb 100644 --- a/java/docs/api/class-apiresponse.mdx +++ b/java/docs/api/class-apiresponse.mdx @@ -192,6 +192,7 @@ APIResponse.url(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -200,6 +201,7 @@ APIResponse.url(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-apiresponseassertions.mdx b/java/docs/api/class-apiresponseassertions.mdx index a4777274d5e..7505bb855b1 100644 --- a/java/docs/api/class-apiresponseassertions.mdx +++ b/java/docs/api/class-apiresponseassertions.mdx @@ -88,6 +88,7 @@ assertThat(response).not() [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -96,6 +97,7 @@ assertThat(response).not() [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-browser.mdx b/java/docs/api/class-browser.mdx index dfcfc019dd4..f44df1394a2 100644 --- a/java/docs/api/class-browser.mdx +++ b/java/docs/api/class-browser.mdx @@ -614,6 +614,7 @@ Browser.onDisconnected(handler) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -622,6 +623,7 @@ Browser.onDisconnected(handler) [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-browsercontext.mdx b/java/docs/api/class-browsercontext.mdx index 34f3a8935f6..22a52210caf 100644 --- a/java/docs/api/class-browsercontext.mdx +++ b/java/docs/api/class-browsercontext.mdx @@ -951,6 +951,23 @@ BrowserContext.onPage(handler) --- +### onPageError(handler) {#browser-context-event-page-error} + +Added in: v1.38browserContext.onPageError(handler) + +Emitted when unhandled exceptions occur on any pages created through this context. To only listen for `pageError` events from a particular page, use [Page.onPageError(handler)](/api/class-page.mdx#page-event-page-error). + +**Usage** + +```java +BrowserContext.onPageError(handler) +``` + +**Event data** +- [PageError] + +--- + ### onRequest(handler) {#browser-context-event-request} Added in: v1.12browserContext.onRequest(handler) @@ -1047,6 +1064,7 @@ BrowserContext.onResponse(handler) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -1055,6 +1073,7 @@ BrowserContext.onResponse(handler) [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-browsertype.mdx b/java/docs/api/class-browsertype.mdx index be3f552b312..e085fa7774a 100644 --- a/java/docs/api/class-browsertype.mdx +++ b/java/docs/api/class-browsertype.mdx @@ -489,6 +489,7 @@ BrowserType.name(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -497,6 +498,7 @@ BrowserType.name(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-cdpsession.mdx b/java/docs/api/class-cdpsession.mdx index b4bd386f749..c2950edb3f1 100644 --- a/java/docs/api/class-cdpsession.mdx +++ b/java/docs/api/class-cdpsession.mdx @@ -139,6 +139,7 @@ CDPSession.send(method, args); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -147,6 +148,7 @@ CDPSession.send(method, args); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-consolemessage.mdx b/java/docs/api/class-consolemessage.mdx index 4e7021b22f6..9c6d6b6624a 100644 --- a/java/docs/api/class-consolemessage.mdx +++ b/java/docs/api/class-consolemessage.mdx @@ -142,6 +142,7 @@ ConsoleMessage.type(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -150,6 +151,7 @@ ConsoleMessage.type(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-dialog.mdx b/java/docs/api/class-dialog.mdx index 242f3d32834..321672dda0f 100644 --- a/java/docs/api/class-dialog.mdx +++ b/java/docs/api/class-dialog.mdx @@ -164,6 +164,7 @@ Dialog.type(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -172,6 +173,7 @@ Dialog.type(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-download.mdx b/java/docs/api/class-download.mdx index baaf1ba779e..1a88763e1c5 100644 --- a/java/docs/api/class-download.mdx +++ b/java/docs/api/class-download.mdx @@ -202,6 +202,7 @@ Download.url(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -210,6 +211,7 @@ Download.url(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-elementhandle.mdx b/java/docs/api/class-elementhandle.mdx index 71ab015266f..fc83318cb24 100644 --- a/java/docs/api/class-elementhandle.mdx +++ b/java/docs/api/class-elementhandle.mdx @@ -1273,6 +1273,7 @@ This method does not work across navigations, use [Page.waitForSelector()](/api/ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -1281,6 +1282,7 @@ This method does not work across navigations, use [Page.waitForSelector()](/api/ [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-filechooser.mdx b/java/docs/api/class-filechooser.mdx index b9c134e29ce..13891b9232c 100644 --- a/java/docs/api/class-filechooser.mdx +++ b/java/docs/api/class-filechooser.mdx @@ -126,6 +126,7 @@ FileChooser.setFiles(files, options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -134,6 +135,7 @@ FileChooser.setFiles(files, options); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-formdata.mdx b/java/docs/api/class-formdata.mdx index e5fbc674139..42ec700e45e 100644 --- a/java/docs/api/class-formdata.mdx +++ b/java/docs/api/class-formdata.mdx @@ -97,6 +97,7 @@ FormData.set(name, value); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -105,6 +106,7 @@ FormData.set(name, value); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-frame.mdx b/java/docs/api/class-frame.mdx index fea444d1c0e..1ae8adbddcd 100644 --- a/java/docs/api/class-frame.mdx +++ b/java/docs/api/class-frame.mdx @@ -2559,6 +2559,7 @@ Frame.waitForTimeout(timeout); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -2567,6 +2568,7 @@ Frame.waitForTimeout(timeout); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-framelocator.mdx b/java/docs/api/class-framelocator.mdx index 1a8d64e695a..5d29a37e7d3 100644 --- a/java/docs/api/class-framelocator.mdx +++ b/java/docs/api/class-framelocator.mdx @@ -504,6 +504,7 @@ FrameLocator.nth(index); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -512,6 +513,7 @@ FrameLocator.nth(index); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-jshandle.mdx b/java/docs/api/class-jshandle.mdx index c29fa78a7d3..5ef5a8959ec 100644 --- a/java/docs/api/class-jshandle.mdx +++ b/java/docs/api/class-jshandle.mdx @@ -204,6 +204,7 @@ JSHandle.jsonValue(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -212,6 +213,7 @@ JSHandle.jsonValue(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-keyboard.mdx b/java/docs/api/class-keyboard.mdx index 52b224491dd..f6cf0cf41c4 100644 --- a/java/docs/api/class-keyboard.mdx +++ b/java/docs/api/class-keyboard.mdx @@ -226,6 +226,7 @@ Keyboard.up(key); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -234,6 +235,7 @@ Keyboard.up(key); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-locator.mdx b/java/docs/api/class-locator.mdx index 50d9c85d5c3..22dd358fa4e 100644 --- a/java/docs/api/class-locator.mdx +++ b/java/docs/api/class-locator.mdx @@ -2138,6 +2138,7 @@ Locator.elementHandles(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -2146,6 +2147,7 @@ Locator.elementHandles(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-locatorassertions.mdx b/java/docs/api/class-locatorassertions.mdx index aea2292e05f..e0acf5a42b3 100644 --- a/java/docs/api/class-locatorassertions.mdx +++ b/java/docs/api/class-locatorassertions.mdx @@ -625,6 +625,7 @@ assertThat(locator).not() [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -633,6 +634,7 @@ assertThat(locator).not() [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-mouse.mdx b/java/docs/api/class-mouse.mdx index 1a92bd711b8..4241e32659d 100644 --- a/java/docs/api/class-mouse.mdx +++ b/java/docs/api/class-mouse.mdx @@ -201,6 +201,7 @@ Mouse.wheel(deltaX, deltaY); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -209,6 +210,7 @@ Mouse.wheel(deltaX, deltaY); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-page.mdx b/java/docs/api/class-page.mdx index 9ff2d58417a..4dd1731a4b5 100644 --- a/java/docs/api/class-page.mdx +++ b/java/docs/api/class-page.mdx @@ -4309,6 +4309,7 @@ page.waitForTimeout(1000); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -4317,6 +4318,7 @@ page.waitForTimeout(1000); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-pageassertions.mdx b/java/docs/api/class-pageassertions.mdx index 595261c6c9d..1d9d9d323e3 100644 --- a/java/docs/api/class-pageassertions.mdx +++ b/java/docs/api/class-pageassertions.mdx @@ -120,6 +120,7 @@ assertThat(page).not() [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -128,6 +129,7 @@ assertThat(page).not() [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-pageerror.mdx b/java/docs/api/class-pageerror.mdx new file mode 100644 index 00000000000..fbd5e58b9ee --- /dev/null +++ b/java/docs/api/class-pageerror.mdx @@ -0,0 +1,132 @@ +--- +id: class-pageerror +title: "PageError" +--- +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +import HTMLCard from '@site/src/components/HTMLCard'; + + +[PageError] class represents objects created by context when there are unhandled execeptions thrown on the pages and dispatched via the [BrowserContext.onPageError(handler)](/api/class-browsercontext.mdx#browser-context-event-page-error) event. + +```java +// Log all uncaught errors to the terminal +context.onPageError(pagerror -> { + System.out.println("Uncaught exception: " + pagerror.error()); +}); + +// Navigate to a page with an exception. +page.navigate("data:text/html,"); +``` + + +--- + +## Methods + +### error {#page-error-error} + +Added in: v1.38pageError.error + +Unhandled error that was thrown. + +**Usage** + +```java +PageError.error(); +``` + +**Returns** +- [Error]# + +--- + +### page {#page-error-page} + +Added in: v1.38pageError.page + +The page that produced this unhandled exception, if any. + +**Usage** + +```java +PageError.page(); +``` + +**Returns** +- [null]|[Page]# + + +[APIRequest]: /api/class-apirequest.mdx "APIRequest" +[APIRequestContext]: /api/class-apirequestcontext.mdx "APIRequestContext" +[APIResponse]: /api/class-apiresponse.mdx "APIResponse" +[APIResponseAssertions]: /api/class-apiresponseassertions.mdx "APIResponseAssertions" +[Browser]: /api/class-browser.mdx "Browser" +[BrowserContext]: /api/class-browsercontext.mdx "BrowserContext" +[BrowserType]: /api/class-browsertype.mdx "BrowserType" +[CDPSession]: /api/class-cdpsession.mdx "CDPSession" +[ConsoleMessage]: /api/class-consolemessage.mdx "ConsoleMessage" +[Dialog]: /api/class-dialog.mdx "Dialog" +[Download]: /api/class-download.mdx "Download" +[ElementHandle]: /api/class-elementhandle.mdx "ElementHandle" +[FileChooser]: /api/class-filechooser.mdx "FileChooser" +[FormData]: /api/class-formdata.mdx "FormData" +[Frame]: /api/class-frame.mdx "Frame" +[FrameLocator]: /api/class-framelocator.mdx "FrameLocator" +[JSHandle]: /api/class-jshandle.mdx "JSHandle" +[Keyboard]: /api/class-keyboard.mdx "Keyboard" +[Locator]: /api/class-locator.mdx "Locator" +[LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" +[Mouse]: /api/class-mouse.mdx "Mouse" +[Page]: /api/class-page.mdx "Page" +[PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" +[Playwright]: /api/class-playwright.mdx "Playwright" +[PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" +[PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" +[Request]: /api/class-request.mdx "Request" +[RequestOptions]: /api/class-requestoptions.mdx "RequestOptions" +[Response]: /api/class-response.mdx "Response" +[Route]: /api/class-route.mdx "Route" +[Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" +[TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" +[Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" +[Tracing]: /api/class-tracing.mdx "Tracing" +[Video]: /api/class-video.mdx "Video" +[WebSocket]: /api/class-websocket.mdx "WebSocket" +[WebSocketFrame]: /api/class-websocketframe.mdx "WebSocketFrame" +[Worker]: /api/class-worker.mdx "Worker" +[Element]: https://developer.mozilla.org/en-US/docs/Web/API/element "Element" +[EvaluationArgument]: /evaluating.mdx#evaluation-argument "EvaluationArgument" +[Promise]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise "Promise" +[iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols "Iterator" +[origin]: https://developer.mozilla.org/en-US/docs/Glossary/Origin "Origin" +[selector]: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors "selector" +[Serializable]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#Description "Serializable" +[UIEvent.detail]: https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail "UIEvent.detail" +[UnixTime]: https://en.wikipedia.org/wiki/Unix_time "Unix Time" +[xpath]: https://developer.mozilla.org/en-US/docs/Web/XPath "xpath" + +[boolean]: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html "boolean" +[byte[]]: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html "byte[]" +[Consumer]: https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html "Consumer" +[double]: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html "double" +[InputStream]: https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html "InputStream" +[int]: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html "int" +[JsonObject]: https://www.javadoc.io/doc/com.google.code.gson/gson/latest/com.google.gson/com/google/gson/JsonObject.html "JsonObject" +[List]: https://docs.oracle.com/javase/8/docs/api/java/util/List.html "List" +[Map]: https://docs.oracle.com/javase/8/docs/api/java/util/Map.html "Map" +[null]: https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.10.7 "null" +[Object]: https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "Object" +[Path]: https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html "Path" +[Pattern]: https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html "Pattern" +[Predicate]: https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html "Predicate" +[void]: https://docs.oracle.com/javase/tutorial/java/javaOO/methods.html "void" +[Runnable]: https://docs.oracle.com/javase/8/docs/api/java/lang/Runnable.html "Runnable" +[RuntimeException]: https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html "RuntimeException" +[String]: https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "String" + +[all available image tags]: https://mcr.microsoft.com/en-us/product/playwright/java/about "all available image tags" +[Microsoft Artifact Registry]: https://mcr.microsoft.com/en-us/product/playwright/java/about "Microsoft Artifact Registry" +[Dockerfile.jammy]: https://github.com/microsoft/playwright-java/blob/main/utils/docker/Dockerfile.jammy "Dockerfile.jammy" diff --git a/java/docs/api/class-playwright.mdx b/java/docs/api/class-playwright.mdx index 89a4b69f7fa..21cd6ad5b19 100644 --- a/java/docs/api/class-playwright.mdx +++ b/java/docs/api/class-playwright.mdx @@ -186,6 +186,7 @@ Playwright.webkit() [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -194,6 +195,7 @@ Playwright.webkit() [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-playwrightassertions.mdx b/java/docs/api/class-playwrightassertions.mdx index e1a60f3dc23..911eb2df18a 100644 --- a/java/docs/api/class-playwrightassertions.mdx +++ b/java/docs/api/class-playwrightassertions.mdx @@ -142,6 +142,7 @@ PlaywrightAssertions.setDefaultAssertionTimeout(30_000); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -150,6 +151,7 @@ PlaywrightAssertions.setDefaultAssertionTimeout(30_000); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-playwrightexception.mdx b/java/docs/api/class-playwrightexception.mdx index 683a1616656..e675a5a483e 100644 --- a/java/docs/api/class-playwrightexception.mdx +++ b/java/docs/api/class-playwrightexception.mdx @@ -35,6 +35,7 @@ PlaywrightException is thrown whenever certain operations are terminated abnorma [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -43,6 +44,7 @@ PlaywrightException is thrown whenever certain operations are terminated abnorma [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-request.mdx b/java/docs/api/class-request.mdx index 53238beb3aa..73bc07e0569 100644 --- a/java/docs/api/class-request.mdx +++ b/java/docs/api/class-request.mdx @@ -408,6 +408,7 @@ Request.url(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -416,6 +417,7 @@ Request.url(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-requestoptions.mdx b/java/docs/api/class-requestoptions.mdx index 68792dfbfbe..b6744ac39f2 100644 --- a/java/docs/api/class-requestoptions.mdx +++ b/java/docs/api/class-requestoptions.mdx @@ -309,6 +309,7 @@ RequestOptions.setTimeout(timeout); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -317,6 +318,7 @@ RequestOptions.setTimeout(timeout); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-response.mdx b/java/docs/api/class-response.mdx index c72c889249f..5f594774be9 100644 --- a/java/docs/api/class-response.mdx +++ b/java/docs/api/class-response.mdx @@ -361,6 +361,7 @@ Response.url(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -369,6 +370,7 @@ Response.url(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-route.mdx b/java/docs/api/class-route.mdx index e6af0f3cb1c..72b574341e0 100644 --- a/java/docs/api/class-route.mdx +++ b/java/docs/api/class-route.mdx @@ -308,6 +308,7 @@ Note that any overrides such as `url` or `headers` only apply to the request bei [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -316,6 +317,7 @@ Note that any overrides such as `url` or `headers` only apply to the request bei [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-selectors.mdx b/java/docs/api/class-selectors.mdx index 9a0a827b2c6..3ea4095867c 100644 --- a/java/docs/api/class-selectors.mdx +++ b/java/docs/api/class-selectors.mdx @@ -105,6 +105,7 @@ Selectors.setTestIdAttribute(attributeName); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -113,6 +114,7 @@ Selectors.setTestIdAttribute(attributeName); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-softassertions.mdx b/java/docs/api/class-softassertions.mdx new file mode 100644 index 00000000000..794a1d7b10a --- /dev/null +++ b/java/docs/api/class-softassertions.mdx @@ -0,0 +1,209 @@ +--- +id: class-softassertions +title: "SoftAssertions" +--- +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +import HTMLCard from '@site/src/components/HTMLCard'; + + +The [SoftAssertions] class provides assertion methods that can be used to make multiple assertions without failing the test immediately. + +```java +... +import com.microsoft.playwright.assertions.SoftAssertions; + +public class TestPage { + ... + @Test + void hasUrlTextPass() { + SoftAssertions softly = SoftAssertions.create(); + page.getByText("Sign in").click(); + softly.assertThat(page).hasURL(Pattern.compile(".*/login")); + softly.assertAll(); + } +} +``` + + +--- + +## Methods + +### assertAll {#soft-assertions-assert-all} + +Added in: v1.38softAssertions.assertAll + +Runs all the assertions have been executed for this [SoftAssertions] object. If any assertions fail, this method throws an AssertionFailedError with the details of all the failed assertions. + +**Usage** + +```java +SoftAssertions softly = SoftAssertions.create(); +... +softly.assertAll(); +``` + +--- + +### assertThat(locator) {#soft-assertions-expect-locator} + +Added in: v1.38softAssertions.assertThat(locator) + +Creates a [LocatorAssertions] object for the given [Locator]. + +**Usage** + +```java +SoftAssertions softly = SoftAssertions.create(); +... +softly.assertThat(locator).isVisible(); +``` + +**Arguments** +- `locator` [Locator]# + + [Locator] object to use for assertions. + +**Returns** +- [LocatorAssertions]# + +--- + +### assertThat(page) {#soft-assertions-expect-page} + +Added in: v1.38softAssertions.assertThat(page) + +Creates a [PageAssertions] object for the given [Page]. + +**Usage** + +```java +SoftAssertions softly = SoftAssertions.create(); +... +softly.assertThat(page).hasTitle("News"); +``` + +**Arguments** +- `page` [Page]# + + [Page] object to use for assertions. + +**Returns** +- [PageAssertions]# + +--- + +### assertThat(response) {#soft-assertions-expect-api-response} + +Added in: v1.38softAssertions.assertThat(response) + +Creates a [APIResponseAssertions] object for the given [APIResponse]. + +**Usage** + +```java +SoftAssertions softly = SoftAssertions.create(); +... +softly.assertThat(response).isOK(); +``` + +**Arguments** +- `response` [APIResponse]# + + [APIResponse] object to use for assertions. + +**Returns** +- [APIResponseAssertions]# + +--- + +### create {#soft-assertions-create} + +Added in: v1.38softAssertions.create + +Creates a [SoftAssertions] object. + +**Usage** + +```java +SoftAssertions softly = SoftAssertions.create(); +``` + +**Returns** +- [SoftAssertions]# + + +[APIRequest]: /api/class-apirequest.mdx "APIRequest" +[APIRequestContext]: /api/class-apirequestcontext.mdx "APIRequestContext" +[APIResponse]: /api/class-apiresponse.mdx "APIResponse" +[APIResponseAssertions]: /api/class-apiresponseassertions.mdx "APIResponseAssertions" +[Browser]: /api/class-browser.mdx "Browser" +[BrowserContext]: /api/class-browsercontext.mdx "BrowserContext" +[BrowserType]: /api/class-browsertype.mdx "BrowserType" +[CDPSession]: /api/class-cdpsession.mdx "CDPSession" +[ConsoleMessage]: /api/class-consolemessage.mdx "ConsoleMessage" +[Dialog]: /api/class-dialog.mdx "Dialog" +[Download]: /api/class-download.mdx "Download" +[ElementHandle]: /api/class-elementhandle.mdx "ElementHandle" +[FileChooser]: /api/class-filechooser.mdx "FileChooser" +[FormData]: /api/class-formdata.mdx "FormData" +[Frame]: /api/class-frame.mdx "Frame" +[FrameLocator]: /api/class-framelocator.mdx "FrameLocator" +[JSHandle]: /api/class-jshandle.mdx "JSHandle" +[Keyboard]: /api/class-keyboard.mdx "Keyboard" +[Locator]: /api/class-locator.mdx "Locator" +[LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" +[Mouse]: /api/class-mouse.mdx "Mouse" +[Page]: /api/class-page.mdx "Page" +[PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" +[Playwright]: /api/class-playwright.mdx "Playwright" +[PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" +[PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" +[Request]: /api/class-request.mdx "Request" +[RequestOptions]: /api/class-requestoptions.mdx "RequestOptions" +[Response]: /api/class-response.mdx "Response" +[Route]: /api/class-route.mdx "Route" +[Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" +[TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" +[Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" +[Tracing]: /api/class-tracing.mdx "Tracing" +[Video]: /api/class-video.mdx "Video" +[WebSocket]: /api/class-websocket.mdx "WebSocket" +[WebSocketFrame]: /api/class-websocketframe.mdx "WebSocketFrame" +[Worker]: /api/class-worker.mdx "Worker" +[Element]: https://developer.mozilla.org/en-US/docs/Web/API/element "Element" +[EvaluationArgument]: /evaluating.mdx#evaluation-argument "EvaluationArgument" +[Promise]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise "Promise" +[iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols "Iterator" +[origin]: https://developer.mozilla.org/en-US/docs/Glossary/Origin "Origin" +[selector]: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors "selector" +[Serializable]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#Description "Serializable" +[UIEvent.detail]: https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail "UIEvent.detail" +[UnixTime]: https://en.wikipedia.org/wiki/Unix_time "Unix Time" +[xpath]: https://developer.mozilla.org/en-US/docs/Web/XPath "xpath" + +[boolean]: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html "boolean" +[byte[]]: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html "byte[]" +[Consumer]: https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html "Consumer" +[double]: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html "double" +[InputStream]: https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html "InputStream" +[int]: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html "int" +[JsonObject]: https://www.javadoc.io/doc/com.google.code.gson/gson/latest/com.google.gson/com/google/gson/JsonObject.html "JsonObject" +[List]: https://docs.oracle.com/javase/8/docs/api/java/util/List.html "List" +[Map]: https://docs.oracle.com/javase/8/docs/api/java/util/Map.html "Map" +[null]: https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.10.7 "null" +[Object]: https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "Object" +[Path]: https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html "Path" +[Pattern]: https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html "Pattern" +[Predicate]: https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html "Predicate" +[void]: https://docs.oracle.com/javase/tutorial/java/javaOO/methods.html "void" +[Runnable]: https://docs.oracle.com/javase/8/docs/api/java/lang/Runnable.html "Runnable" +[RuntimeException]: https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html "RuntimeException" +[String]: https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "String" + +[all available image tags]: https://mcr.microsoft.com/en-us/product/playwright/java/about "all available image tags" +[Microsoft Artifact Registry]: https://mcr.microsoft.com/en-us/product/playwright/java/about "Microsoft Artifact Registry" +[Dockerfile.jammy]: https://github.com/microsoft/playwright-java/blob/main/utils/docker/Dockerfile.jammy "Dockerfile.jammy" diff --git a/java/docs/api/class-timeouterror.mdx b/java/docs/api/class-timeouterror.mdx index bd2e037dd82..b7196afe7ba 100644 --- a/java/docs/api/class-timeouterror.mdx +++ b/java/docs/api/class-timeouterror.mdx @@ -56,6 +56,7 @@ public class TimeoutErrorExample { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -64,6 +65,7 @@ public class TimeoutErrorExample { [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-touchscreen.mdx b/java/docs/api/class-touchscreen.mdx index 569dc950d07..c26a7dcfe16 100644 --- a/java/docs/api/class-touchscreen.mdx +++ b/java/docs/api/class-touchscreen.mdx @@ -58,6 +58,7 @@ Touchscreen.tap(x, y); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -66,6 +67,7 @@ Touchscreen.tap(x, y); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-tracing.mdx b/java/docs/api/class-tracing.mdx index e968fb75e57..63a095226a6 100644 --- a/java/docs/api/class-tracing.mdx +++ b/java/docs/api/class-tracing.mdx @@ -171,6 +171,7 @@ Tracing.stopChunk(options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -179,6 +180,7 @@ Tracing.stopChunk(options); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-video.mdx b/java/docs/api/class-video.mdx index 87c2142994c..81e778fdf72 100644 --- a/java/docs/api/class-video.mdx +++ b/java/docs/api/class-video.mdx @@ -90,6 +90,7 @@ Video.saveAs(path); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -98,6 +99,7 @@ Video.saveAs(path); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-websocket.mdx b/java/docs/api/class-websocket.mdx index 6a228286d5a..c2c1f08a96e 100644 --- a/java/docs/api/class-websocket.mdx +++ b/java/docs/api/class-websocket.mdx @@ -200,6 +200,7 @@ WebSocket.onSocketError(handler) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -208,6 +209,7 @@ WebSocket.onSocketError(handler) [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-websocketframe.mdx b/java/docs/api/class-websocketframe.mdx index c61670b1a35..19b8d95fccc 100644 --- a/java/docs/api/class-websocketframe.mdx +++ b/java/docs/api/class-websocketframe.mdx @@ -70,6 +70,7 @@ WebSocketFrame.text(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -78,6 +79,7 @@ WebSocketFrame.text(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/api/class-worker.mdx b/java/docs/api/class-worker.mdx index c783e994966..1f82eac9ac3 100644 --- a/java/docs/api/class-worker.mdx +++ b/java/docs/api/class-worker.mdx @@ -167,6 +167,7 @@ Worker.onClose(handler) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -175,6 +176,7 @@ Worker.onClose(handler) [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/auth.mdx b/java/docs/auth.mdx index a53914f4753..100e51a679a 100644 --- a/java/docs/auth.mdx +++ b/java/docs/auth.mdx @@ -135,6 +135,7 @@ context.addInitScript("(storage => {\n" + [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -143,6 +144,7 @@ context.addInitScript("(storage => {\n" + [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/browser-contexts.mdx b/java/docs/browser-contexts.mdx index 6dc1068fb17..96dd02dcba1 100644 --- a/java/docs/browser-contexts.mdx +++ b/java/docs/browser-contexts.mdx @@ -79,6 +79,7 @@ public class Example { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -87,6 +88,7 @@ public class Example { [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/browsers.mdx b/java/docs/browsers.mdx index d734397195e..478789445da 100644 --- a/java/docs/browsers.mdx +++ b/java/docs/browsers.mdx @@ -534,6 +534,7 @@ mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="un [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -542,6 +543,7 @@ mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="un [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/ci.mdx b/java/docs/ci.mdx index bf63af29513..281e146752c 100644 --- a/java/docs/ci.mdx +++ b/java/docs/ci.mdx @@ -293,6 +293,7 @@ xvfb-run mvn test [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -301,6 +302,7 @@ xvfb-run mvn test [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/codegen-intro.mdx b/java/docs/codegen-intro.mdx index ae911e02ab2..a78037d38ce 100644 --- a/java/docs/codegen-intro.mdx +++ b/java/docs/codegen-intro.mdx @@ -75,6 +75,7 @@ You can also generate tests using emulation so as to generate a test for a speci [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -83,6 +84,7 @@ You can also generate tests using emulation so as to generate a test for a speci [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/codegen.mdx b/java/docs/codegen.mdx index 769358d6806..c8dbc865723 100644 --- a/java/docs/codegen.mdx +++ b/java/docs/codegen.mdx @@ -168,6 +168,7 @@ public class Example { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -176,6 +177,7 @@ public class Example { [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/debug.mdx b/java/docs/debug.mdx index ab3d0b60c29..447fb2bf419 100644 --- a/java/docs/debug.mdx +++ b/java/docs/debug.mdx @@ -298,6 +298,7 @@ chromium.launch(new BrowserType.LaunchOptions() [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -306,6 +307,7 @@ chromium.launch(new BrowserType.LaunchOptions() [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/dialogs.mdx b/java/docs/dialogs.mdx index dd7983ceba9..55804a05661 100644 --- a/java/docs/dialogs.mdx +++ b/java/docs/dialogs.mdx @@ -74,6 +74,7 @@ page.close(new Page.CloseOptions().setRunBeforeUnload(true)); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -82,6 +83,7 @@ page.close(new Page.CloseOptions().setRunBeforeUnload(true)); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/docker.mdx b/java/docs/docker.mdx index 16c59028860..6e87bdb0a32 100644 --- a/java/docs/docker.mdx +++ b/java/docs/docker.mdx @@ -120,6 +120,7 @@ Browser builds for Firefox and WebKit are built for the [glibc](https://en.wikip [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -128,6 +129,7 @@ Browser builds for Firefox and WebKit are built for the [glibc](https://en.wikip [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/downloads.mdx b/java/docs/downloads.mdx index b7614a1b6ed..afd54ef5c02 100644 --- a/java/docs/downloads.mdx +++ b/java/docs/downloads.mdx @@ -65,6 +65,7 @@ For uploading files, see the [uploading files](./input.mdx#upload-files) section [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -73,6 +74,7 @@ For uploading files, see the [uploading files](./input.mdx#upload-files) section [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/emulation.mdx b/java/docs/emulation.mdx index a9af1306ace..374d1eb51d8 100644 --- a/java/docs/emulation.mdx +++ b/java/docs/emulation.mdx @@ -170,6 +170,7 @@ BrowserContext context = browser.newContext(new Browser.NewContextOptions() [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -178,6 +179,7 @@ BrowserContext context = browser.newContext(new Browser.NewContextOptions() [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/evaluating.mdx b/java/docs/evaluating.mdx index 1fb21eaac25..1dd0f9972bb 100644 --- a/java/docs/evaluating.mdx +++ b/java/docs/evaluating.mdx @@ -126,6 +126,7 @@ Object result = page.evaluate("() => {\n" + [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -134,6 +135,7 @@ Object result = page.evaluate("() => {\n" + [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/events.mdx b/java/docs/events.mdx index 275862d1780..3159a23daec 100644 --- a/java/docs/events.mdx +++ b/java/docs/events.mdx @@ -82,6 +82,7 @@ page.evaluate("prompt('Enter a number:')"); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -90,6 +91,7 @@ page.evaluate("prompt('Enter a number:')"); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/extensibility.mdx b/java/docs/extensibility.mdx index a63785446d0..38bdf5b5067 100644 --- a/java/docs/extensibility.mdx +++ b/java/docs/extensibility.mdx @@ -75,6 +75,7 @@ int buttonCount = (int) page.locator("tag=button").count(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -83,6 +84,7 @@ int buttonCount = (int) page.locator("tag=button").count(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/frames.mdx b/java/docs/frames.mdx index 6ca5b1797f4..183a6fbb52d 100644 --- a/java/docs/frames.mdx +++ b/java/docs/frames.mdx @@ -55,6 +55,7 @@ frame.fill("#username-input", "John"); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -63,6 +64,7 @@ frame.fill("#username-input", "John"); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/handles.mdx b/java/docs/handles.mdx index 7f91221e672..ad7ff3a4a7e 100644 --- a/java/docs/handles.mdx +++ b/java/docs/handles.mdx @@ -136,6 +136,7 @@ locator.click(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -144,6 +145,7 @@ locator.click(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/input.mdx b/java/docs/input.mdx index 44dd6e7dcf0..94d524a9c7e 100644 --- a/java/docs/input.mdx +++ b/java/docs/input.mdx @@ -244,6 +244,7 @@ If your page relies on the `dragover` event being dispatched, you need at least [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -252,6 +253,7 @@ If your page relies on the `dragover` event being dispatched, you need at least [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/intro.mdx b/java/docs/intro.mdx index 9e541293acb..776753a46a5 100644 --- a/java/docs/intro.mdx +++ b/java/docs/intro.mdx @@ -160,6 +160,7 @@ By default browsers launched with Playwright run headless, meaning no browser UI [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -168,6 +169,7 @@ By default browsers launched with Playwright run headless, meaning no browser UI [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/languages.mdx b/java/docs/languages.mdx index a8cdf0058c1..6a8da93af43 100644 --- a/java/docs/languages.mdx +++ b/java/docs/languages.mdx @@ -56,6 +56,7 @@ Playwright for .NET comes with [NUnit base classes](https://playwright.dev/dotne [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -64,6 +65,7 @@ Playwright for .NET comes with [NUnit base classes](https://playwright.dev/dotne [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/locators.mdx b/java/docs/locators.mdx index 219f81c4127..979b95a1081 100644 --- a/java/docs/locators.mdx +++ b/java/docs/locators.mdx @@ -955,6 +955,7 @@ For less commonly used locators, look at the [other locators](./other-locators.m [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -963,6 +964,7 @@ For less commonly used locators, look at the [other locators](./other-locators.m [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/mock.mdx b/java/docs/mock.mdx index 36ff137eda1..16cecb63559 100644 --- a/java/docs/mock.mdx +++ b/java/docs/mock.mdx @@ -173,6 +173,7 @@ Read more about [advanced networking](./network.mdx). [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -181,6 +182,7 @@ Read more about [advanced networking](./network.mdx). [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/navigations.mdx b/java/docs/navigations.mdx index 4bc6f9da4f5..0b650b8a172 100644 --- a/java/docs/navigations.mdx +++ b/java/docs/navigations.mdx @@ -97,6 +97,7 @@ Playwright splits the process of showing a new document in a page into **navigat [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -105,6 +106,7 @@ Playwright splits the process of showing a new document in a page into **navigat [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/network.mdx b/java/docs/network.mdx index 9e22144af7c..911ca459340 100644 --- a/java/docs/network.mdx +++ b/java/docs/network.mdx @@ -221,6 +221,7 @@ Playwright's built-in [BrowserContext.route()](/api/class-browsercontext.mdx#bro [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -229,6 +230,7 @@ Playwright's built-in [BrowserContext.route()](/api/class-browsercontext.mdx#bro [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/other-locators.mdx b/java/docs/other-locators.mdx index d64b6d7131d..7b5bb607335 100644 --- a/java/docs/other-locators.mdx +++ b/java/docs/other-locators.mdx @@ -486,6 +486,7 @@ For example, `css=article >> text=Hello` captures the element with the text `Hel [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -494,6 +495,7 @@ For example, `css=article >> text=Hello` captures the element with the text `Hel [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/pages.mdx b/java/docs/pages.mdx index 0ab2175035b..ca1b5ff3774 100644 --- a/java/docs/pages.mdx +++ b/java/docs/pages.mdx @@ -117,6 +117,7 @@ page.onPopup(popup -> { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -125,6 +126,7 @@ page.onPopup(popup -> { [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/pom.mdx b/java/docs/pom.mdx index 11fae9c738b..827e8b17244 100644 --- a/java/docs/pom.mdx +++ b/java/docs/pom.mdx @@ -79,6 +79,7 @@ searchPage.search("search query"); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -87,6 +88,7 @@ searchPage.search("search query"); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/release-notes.mdx b/java/docs/release-notes.mdx index a6b657a7fb7..35ecdc9e324 100644 --- a/java/docs/release-notes.mdx +++ b/java/docs/release-notes.mdx @@ -1034,6 +1034,7 @@ This version of Playwright was also tested against the following stable channels [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -1042,6 +1043,7 @@ This version of Playwright was also tested against the following stable channels [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/running-tests.mdx b/java/docs/running-tests.mdx index 02076af1a90..054a06d2b10 100644 --- a/java/docs/running-tests.mdx +++ b/java/docs/running-tests.mdx @@ -111,6 +111,7 @@ See [here](./test-runners.mdx) for further details on how to run tests in parall [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -119,6 +120,7 @@ See [here](./test-runners.mdx) for further details on how to run tests in parall [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/screenshots.mdx b/java/docs/screenshots.mdx index d502494e588..93d3fc66a26 100644 --- a/java/docs/screenshots.mdx +++ b/java/docs/screenshots.mdx @@ -70,6 +70,7 @@ page.locator(".header").screenshot(new Locator.ScreenshotOptions().setPath(Paths [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -78,6 +79,7 @@ page.locator(".header").screenshot(new Locator.ScreenshotOptions().setPath(Paths [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/selenium-grid.mdx b/java/docs/selenium-grid.mdx index c3f5ef9eea3..4c0547cfd2a 100644 --- a/java/docs/selenium-grid.mdx +++ b/java/docs/selenium-grid.mdx @@ -145,6 +145,7 @@ This means that Selenium 3 is supported in a best-effort manner, where Playwrigh [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -153,6 +154,7 @@ This means that Selenium 3 is supported in a best-effort manner, where Playwrigh [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/test-assertions.mdx b/java/docs/test-assertions.mdx index 3da45d896e7..406186c7c4c 100644 --- a/java/docs/test-assertions.mdx +++ b/java/docs/test-assertions.mdx @@ -56,6 +56,7 @@ import HTMLCard from '@site/src/components/HTMLCard'; [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -64,6 +65,7 @@ import HTMLCard from '@site/src/components/HTMLCard'; [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/test-runners.mdx b/java/docs/test-runners.mdx index 0fc131186ee..dd5c817aecb 100644 --- a/java/docs/test-runners.mdx +++ b/java/docs/test-runners.mdx @@ -290,6 +290,7 @@ Also, Playwright command line tools can be run with : [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -298,6 +299,7 @@ Also, Playwright command line tools can be run with : [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/threading.mdx b/java/docs/threading.mdx index 9a0b3ed94ae..ea47b237332 100644 --- a/java/docs/threading.mdx +++ b/java/docs/threading.mdx @@ -102,6 +102,7 @@ page.waitForTimeout(60_000); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -110,6 +111,7 @@ page.waitForTimeout(60_000); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/trace-viewer-intro.mdx b/java/docs/trace-viewer-intro.mdx index daa81f88e55..95d74ce134f 100644 --- a/java/docs/trace-viewer-intro.mdx +++ b/java/docs/trace-viewer-intro.mdx @@ -77,6 +77,7 @@ To learn more check out our detailed guide on [Trace Viewer](/trace-viewer.mdx). [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -85,6 +86,7 @@ To learn more check out our detailed guide on [Trace Viewer](/trace-viewer.mdx). [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/trace-viewer.mdx b/java/docs/trace-viewer.mdx index bfdbdc472b6..c9c6d7ef998 100644 --- a/java/docs/trace-viewer.mdx +++ b/java/docs/trace-viewer.mdx @@ -177,6 +177,7 @@ https://trace.playwright.dev/?trace=https://demo.playwright.dev/reports/todomvc/ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -185,6 +186,7 @@ https://trace.playwright.dev/?trace=https://demo.playwright.dev/reports/todomvc/ [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/videos.mdx b/java/docs/videos.mdx index 6bbe5715879..f028229b4bc 100644 --- a/java/docs/videos.mdx +++ b/java/docs/videos.mdx @@ -60,6 +60,7 @@ Note that the video is only available after the page or browser context is close [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -68,6 +69,7 @@ Note that the video is only available after the page or browser context is close [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/webview2.mdx b/java/docs/webview2.mdx index 6ab7c48c790..6bdcd200914 100644 --- a/java/docs/webview2.mdx +++ b/java/docs/webview2.mdx @@ -198,6 +198,7 @@ For debugging tests, see the Playwright [Debugging guide](./debug). [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -206,6 +207,7 @@ For debugging tests, see the Playwright [Debugging guide](./debug). [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/why-playwright.mdx b/java/docs/why-playwright.mdx index e02e4d1912f..c9705cfac32 100644 --- a/java/docs/why-playwright.mdx +++ b/java/docs/why-playwright.mdx @@ -55,6 +55,7 @@ Playwright enables fast, reliable and capable testing and automation across all [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -63,6 +64,7 @@ Playwright enables fast, reliable and capable testing and automation across all [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/java/docs/writing-tests.mdx b/java/docs/writing-tests.mdx index 87a784fb0ae..dea7c8ac192 100644 --- a/java/docs/writing-tests.mdx +++ b/java/docs/writing-tests.mdx @@ -117,6 +117,7 @@ Page page = context.newPage(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [PlaywrightException]: /api/class-playwrightexception.mdx "PlaywrightException" @@ -125,6 +126,7 @@ Page page = context.newPage(); [Response]: /api/class-response.mdx "Response" [Route]: /api/class-route.mdx "Route" [Selectors]: /api/class-selectors.mdx "Selectors" +[SoftAssertions]: /api/class-softassertions.mdx "SoftAssertions" [TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" [Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" [Tracing]: /api/class-tracing.mdx "Tracing" diff --git a/nodejs/docs/accessibility-testing.mdx b/nodejs/docs/accessibility-testing.mdx index 8906fc9baea..39bd0eadc99 100644 --- a/nodejs/docs/accessibility-testing.mdx +++ b/nodejs/docs/accessibility-testing.mdx @@ -363,6 +363,7 @@ test('example using custom fixture', async ({ page, makeAxeBuilder }) => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/actionability.mdx b/nodejs/docs/actionability.mdx index c2ed8cd6e73..4958bcdce47 100644 --- a/nodejs/docs/actionability.mdx +++ b/nodejs/docs/actionability.mdx @@ -141,6 +141,7 @@ For example, consider a scenario where Playwright will click `Sign Up` button re [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api-testing.mdx b/nodejs/docs/api-testing.mdx index bf7eb6f6856..9e647c8eeb1 100644 --- a/nodejs/docs/api-testing.mdx +++ b/nodejs/docs/api-testing.mdx @@ -400,6 +400,7 @@ test('global context request has isolated cookie storage', async ({ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-accessibility.mdx b/nodejs/docs/api/class-accessibility.mdx index 5821de8bc01..73e480cef8f 100644 --- a/nodejs/docs/api/class-accessibility.mdx +++ b/nodejs/docs/api/class-accessibility.mdx @@ -190,6 +190,7 @@ function findFocusedNode(node) { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-android.mdx b/nodejs/docs/api/class-android.mdx index bd493f11158..24d3f8f7467 100644 --- a/nodejs/docs/api/class-android.mdx +++ b/nodejs/docs/api/class-android.mdx @@ -280,6 +280,7 @@ android.setDefaultTimeout(timeout); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-androiddevice.mdx b/nodejs/docs/api/class-androiddevice.mdx index 356212e9a2d..d4f7229b795 100644 --- a/nodejs/docs/api/class-androiddevice.mdx +++ b/nodejs/docs/api/class-androiddevice.mdx @@ -913,6 +913,7 @@ androidDevice.on('webview', data => {}); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-androidinput.mdx b/nodejs/docs/api/class-androidinput.mdx index 56b241bdc0e..5729849a698 100644 --- a/nodejs/docs/api/class-androidinput.mdx +++ b/nodejs/docs/api/class-androidinput.mdx @@ -177,6 +177,7 @@ await androidInput.type(text); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-androidsocket.mdx b/nodejs/docs/api/class-androidsocket.mdx index 5a1f8c9b560..975b89a7d73 100644 --- a/nodejs/docs/api/class-androidsocket.mdx +++ b/nodejs/docs/api/class-androidsocket.mdx @@ -113,6 +113,7 @@ androidSocket.on('data', data => {}); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-androidwebview.mdx b/nodejs/docs/api/class-androidwebview.mdx index 203715f69a9..d068fdc5317 100644 --- a/nodejs/docs/api/class-androidwebview.mdx +++ b/nodejs/docs/api/class-androidwebview.mdx @@ -114,6 +114,7 @@ androidWebView.on('close', data => {}); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-apirequest.mdx b/nodejs/docs/api/class-apirequest.mdx index 8bd6de333b2..33aa6b29066 100644 --- a/nodejs/docs/api/class-apirequest.mdx +++ b/nodejs/docs/api/class-apirequest.mdx @@ -154,6 +154,7 @@ await apiRequest.newContext(options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-apirequestcontext.mdx b/nodejs/docs/api/class-apirequestcontext.mdx index 0f58ab2268f..df922857914 100644 --- a/nodejs/docs/api/class-apirequestcontext.mdx +++ b/nodejs/docs/api/class-apirequestcontext.mdx @@ -631,6 +631,7 @@ await apiRequestContext.storageState(options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-apiresponse.mdx b/nodejs/docs/api/class-apiresponse.mdx index 9005f948645..ad95c29ff64 100644 --- a/nodejs/docs/api/class-apiresponse.mdx +++ b/nodejs/docs/api/class-apiresponse.mdx @@ -222,6 +222,7 @@ apiResponse.url(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-apiresponseassertions.mdx b/nodejs/docs/api/class-apiresponseassertions.mdx index fdc09b2ef66..2f570cf8881 100644 --- a/nodejs/docs/api/class-apiresponseassertions.mdx +++ b/nodejs/docs/api/class-apiresponseassertions.mdx @@ -94,6 +94,7 @@ expect(response).not [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-browser.mdx b/nodejs/docs/api/class-browser.mdx index a40c09728f8..f320a0ac438 100644 --- a/nodejs/docs/api/class-browser.mdx +++ b/nodejs/docs/api/class-browser.mdx @@ -759,6 +759,7 @@ browser.on('disconnected', data => {}); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-browsercontext.mdx b/nodejs/docs/api/class-browsercontext.mdx index 08d2ec5a7fe..a28d9dcf11f 100644 --- a/nodejs/docs/api/class-browsercontext.mdx +++ b/nodejs/docs/api/class-browsercontext.mdx @@ -996,6 +996,23 @@ browserContext.on('page', data => {}); --- +### on('pageerror') {#browser-context-event-page-error} + +Added in: v1.38browserContext.on('pageerror') + +Emitted when unhandled exceptions occur on any pages created through this context. To only listen for `pageError` events from a particular page, use [page.on('pageerror')](/api/class-page.mdx#page-event-page-error). + +**Usage** + +```js +browserContext.on('pageerror', data => {}); +``` + +**Event data** +- [PageError] + +--- + ### on('request') {#browser-context-event-request} Added in: v1.12browserContext.on('request') @@ -1154,6 +1171,7 @@ await browserContext.setHTTPCredentials(httpCredentials); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-browserserver.mdx b/nodejs/docs/api/class-browserserver.mdx index 1edbe21a259..b0d5a3e4b0a 100644 --- a/nodejs/docs/api/class-browserserver.mdx +++ b/nodejs/docs/api/class-browserserver.mdx @@ -125,6 +125,7 @@ browserServer.on('close', data => {}); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-browsertype.mdx b/nodejs/docs/api/class-browsertype.mdx index d6a98cefe15..0bb800731b4 100644 --- a/nodejs/docs/api/class-browsertype.mdx +++ b/nodejs/docs/api/class-browsertype.mdx @@ -634,6 +634,7 @@ browserType.name(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-cdpsession.mdx b/nodejs/docs/api/class-cdpsession.mdx index 831064ba2cb..dad8726f121 100644 --- a/nodejs/docs/api/class-cdpsession.mdx +++ b/nodejs/docs/api/class-cdpsession.mdx @@ -103,6 +103,7 @@ await cdpSession.send(method, params); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-consolemessage.mdx b/nodejs/docs/api/class-consolemessage.mdx index 18be8896cd6..5210def7118 100644 --- a/nodejs/docs/api/class-consolemessage.mdx +++ b/nodejs/docs/api/class-consolemessage.mdx @@ -161,6 +161,7 @@ consoleMessage.type(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-coverage.mdx b/nodejs/docs/api/class-coverage.mdx index 4983170bb63..08f570816d5 100644 --- a/nodejs/docs/api/class-coverage.mdx +++ b/nodejs/docs/api/class-coverage.mdx @@ -207,6 +207,7 @@ await coverage.stopJSCoverage(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-dialog.mdx b/nodejs/docs/api/class-dialog.mdx index 07b771387b0..1f5fae39779 100644 --- a/nodejs/docs/api/class-dialog.mdx +++ b/nodejs/docs/api/class-dialog.mdx @@ -170,6 +170,7 @@ dialog.type(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-download.mdx b/nodejs/docs/api/class-download.mdx index 782361b1f72..7ff41679a1e 100644 --- a/nodejs/docs/api/class-download.mdx +++ b/nodejs/docs/api/class-download.mdx @@ -212,6 +212,7 @@ download.url(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-electron.mdx b/nodejs/docs/api/class-electron.mdx index c6bf3f978a8..06bee1e90b1 100644 --- a/nodejs/docs/api/class-electron.mdx +++ b/nodejs/docs/api/class-electron.mdx @@ -217,6 +217,7 @@ await electron.launch(options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-electronapplication.mdx b/nodejs/docs/api/class-electronapplication.mdx index d12ad2af3c3..7384af039a5 100644 --- a/nodejs/docs/api/class-electronapplication.mdx +++ b/nodejs/docs/api/class-electronapplication.mdx @@ -317,6 +317,7 @@ electronApplication.on('window', data => {}); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-elementhandle.mdx b/nodejs/docs/api/class-elementhandle.mdx index e559be909ee..dfa6630981f 100644 --- a/nodejs/docs/api/class-elementhandle.mdx +++ b/nodejs/docs/api/class-elementhandle.mdx @@ -1287,6 +1287,7 @@ This method does not work across navigations, use [page.waitForSelector()](/api/ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-filechooser.mdx b/nodejs/docs/api/class-filechooser.mdx index 67e09b2fa30..961f7c9521b 100644 --- a/nodejs/docs/api/class-filechooser.mdx +++ b/nodejs/docs/api/class-filechooser.mdx @@ -140,6 +140,7 @@ await fileChooser.setFiles(files, options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-fixtures.mdx b/nodejs/docs/api/class-fixtures.mdx index b7ff06917ee..eaa6dbd00a2 100644 --- a/nodejs/docs/api/class-fixtures.mdx +++ b/nodejs/docs/api/class-fixtures.mdx @@ -181,6 +181,7 @@ test('basic test', async ({ request }) => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-frame.mdx b/nodejs/docs/api/class-frame.mdx index ada2e6023f6..d7807ace202 100644 --- a/nodejs/docs/api/class-frame.mdx +++ b/nodejs/docs/api/class-frame.mdx @@ -2559,6 +2559,7 @@ await frame.waitForTimeout(timeout); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-framelocator.mdx b/nodejs/docs/api/class-framelocator.mdx index f8ca936a239..5211fbcb7bc 100644 --- a/nodejs/docs/api/class-framelocator.mdx +++ b/nodejs/docs/api/class-framelocator.mdx @@ -520,6 +520,7 @@ frameLocator.nth(index); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-genericassertions.mdx b/nodejs/docs/api/class-genericassertions.mdx index 5e99b5adbe6..f9d19375e65 100644 --- a/nodejs/docs/api/class-genericassertions.mdx +++ b/nodejs/docs/api/class-genericassertions.mdx @@ -794,6 +794,7 @@ expect(value).not [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-jshandle.mdx b/nodejs/docs/api/class-jshandle.mdx index e307ef66030..85021667596 100644 --- a/nodejs/docs/api/class-jshandle.mdx +++ b/nodejs/docs/api/class-jshandle.mdx @@ -215,6 +215,7 @@ await jsHandle.jsonValue(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-keyboard.mdx b/nodejs/docs/api/class-keyboard.mdx index 64a0e732140..097300933e6 100644 --- a/nodejs/docs/api/class-keyboard.mdx +++ b/nodejs/docs/api/class-keyboard.mdx @@ -237,6 +237,7 @@ await keyboard.up(key); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-location.mdx b/nodejs/docs/api/class-location.mdx index fd609e0cf2b..d1a783f7feb 100644 --- a/nodejs/docs/api/class-location.mdx +++ b/nodejs/docs/api/class-location.mdx @@ -98,6 +98,7 @@ location.line [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-locator.mdx b/nodejs/docs/api/class-locator.mdx index 3edea5b14ac..9fbbb8fb9c8 100644 --- a/nodejs/docs/api/class-locator.mdx +++ b/nodejs/docs/api/class-locator.mdx @@ -2156,6 +2156,7 @@ await locator.elementHandles(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-locatorassertions.mdx b/nodejs/docs/api/class-locatorassertions.mdx index 854e53f4de4..914950a167b 100644 --- a/nodejs/docs/api/class-locatorassertions.mdx +++ b/nodejs/docs/api/class-locatorassertions.mdx @@ -765,6 +765,7 @@ expect(locator).not [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-logger.mdx b/nodejs/docs/api/class-logger.mdx index 71c48c44904..4010c66bdd4 100644 --- a/nodejs/docs/api/class-logger.mdx +++ b/nodejs/docs/api/class-logger.mdx @@ -114,6 +114,7 @@ logger.log(name, severity, message, args, hints); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-mouse.mdx b/nodejs/docs/api/class-mouse.mdx index c407815c3fd..8e045d62b4b 100644 --- a/nodejs/docs/api/class-mouse.mdx +++ b/nodejs/docs/api/class-mouse.mdx @@ -212,6 +212,7 @@ await mouse.wheel(deltaX, deltaY); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-page.mdx b/nodejs/docs/api/class-page.mdx index 5deced65ebd..cf68991e8d6 100644 --- a/nodejs/docs/api/class-page.mdx +++ b/nodejs/docs/api/class-page.mdx @@ -4066,6 +4066,7 @@ await page.waitForTimeout(1000); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-pageassertions.mdx b/nodejs/docs/api/class-pageassertions.mdx index e7531ebfac9..05a1144323b 100644 --- a/nodejs/docs/api/class-pageassertions.mdx +++ b/nodejs/docs/api/class-pageassertions.mdx @@ -275,6 +275,7 @@ expect(page).not [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-pageerror.mdx b/nodejs/docs/api/class-pageerror.mdx new file mode 100644 index 00000000000..d426e016101 --- /dev/null +++ b/nodejs/docs/api/class-pageerror.mdx @@ -0,0 +1,155 @@ +--- +id: class-pageerror +title: "PageError" +--- +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +import HTMLCard from '@site/src/components/HTMLCard'; + + +[PageError] class represents objects created by context when there are unhandled execeptions thrown on the pages and dispatched via the [browserContext.on('pageerror')](/api/class-browsercontext.mdx#browser-context-event-page-error) event. + +```js +// Log all uncaught errors to the terminal +context.on('pageerror', pageerror => { + console.log(`Uncaught exception: "${pageerror.error()}"`); +}); + +// Navigate to a page with an exception. +await page.goto('data:text/html,'); +``` + + +--- + +## Methods + +### error {#page-error-error} + +Added in: v1.38pageError.error + +Unhandled error that was thrown. + +**Usage** + +```js +pageError.error(); +``` + +**Returns** +- [Error]# + +--- + +### page {#page-error-page} + +Added in: v1.38pageError.page + +The page that produced this unhandled exception, if any. + +**Usage** + +```js +pageError.page(); +``` + +**Returns** +- [null]|[Page]# + + +[Accessibility]: /api/class-accessibility.mdx "Accessibility" +[Android]: /api/class-android.mdx "Android" +[AndroidDevice]: /api/class-androiddevice.mdx "AndroidDevice" +[AndroidInput]: /api/class-androidinput.mdx "AndroidInput" +[AndroidSocket]: /api/class-androidsocket.mdx "AndroidSocket" +[AndroidWebView]: /api/class-androidwebview.mdx "AndroidWebView" +[APIRequest]: /api/class-apirequest.mdx "APIRequest" +[APIRequestContext]: /api/class-apirequestcontext.mdx "APIRequestContext" +[APIResponse]: /api/class-apiresponse.mdx "APIResponse" +[APIResponseAssertions]: /api/class-apiresponseassertions.mdx "APIResponseAssertions" +[Browser]: /api/class-browser.mdx "Browser" +[BrowserContext]: /api/class-browsercontext.mdx "BrowserContext" +[BrowserServer]: /api/class-browserserver.mdx "BrowserServer" +[BrowserType]: /api/class-browsertype.mdx "BrowserType" +[CDPSession]: /api/class-cdpsession.mdx "CDPSession" +[ConsoleMessage]: /api/class-consolemessage.mdx "ConsoleMessage" +[Coverage]: /api/class-coverage.mdx "Coverage" +[Dialog]: /api/class-dialog.mdx "Dialog" +[Download]: /api/class-download.mdx "Download" +[Electron]: /api/class-electron.mdx "Electron" +[ElectronApplication]: /api/class-electronapplication.mdx "ElectronApplication" +[ElementHandle]: /api/class-elementhandle.mdx "ElementHandle" +[FileChooser]: /api/class-filechooser.mdx "FileChooser" +[Frame]: /api/class-frame.mdx "Frame" +[FrameLocator]: /api/class-framelocator.mdx "FrameLocator" +[GenericAssertions]: /api/class-genericassertions.mdx "GenericAssertions" +[JSHandle]: /api/class-jshandle.mdx "JSHandle" +[Keyboard]: /api/class-keyboard.mdx "Keyboard" +[Locator]: /api/class-locator.mdx "Locator" +[LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" +[Logger]: /api/class-logger.mdx "Logger" +[Mouse]: /api/class-mouse.mdx "Mouse" +[Page]: /api/class-page.mdx "Page" +[PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" +[Playwright]: /api/class-playwright.mdx "Playwright" +[PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" +[Request]: /api/class-request.mdx "Request" +[Response]: /api/class-response.mdx "Response" +[Route]: /api/class-route.mdx "Route" +[Selectors]: /api/class-selectors.mdx "Selectors" +[SnapshotAssertions]: /api/class-snapshotassertions.mdx "SnapshotAssertions" +[TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" +[Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" +[Tracing]: /api/class-tracing.mdx "Tracing" +[Video]: /api/class-video.mdx "Video" +[WebSocket]: /api/class-websocket.mdx "WebSocket" +[Worker]: /api/class-worker.mdx "Worker" +[Fixtures]: /api/class-fixtures.mdx "Fixtures" +[Test]: /api/class-test.mdx "Test" +[TestConfig]: /api/class-testconfig.mdx "TestConfig" +[TestInfo]: /api/class-testinfo.mdx "TestInfo" +[TestInfoError]: /api/class-testinfoerror.mdx "TestInfoError" +[TestOptions]: /api/class-testoptions.mdx "TestOptions" +[TestProject]: /api/class-testproject.mdx "TestProject" +[WorkerInfo]: /api/class-workerinfo.mdx "WorkerInfo" +[Location]: /api/class-location.mdx "Location" +[Reporter]: /api/class-reporter.mdx "Reporter" +[Suite]: /api/class-suite.mdx "Suite" +[TestCase]: /api/class-testcase.mdx "TestCase" +[TestError]: /api/class-testerror.mdx "TestError" +[TestResult]: /api/class-testresult.mdx "TestResult" +[TestStep]: /api/class-teststep.mdx "TestStep" +[Element]: https://developer.mozilla.org/en-US/docs/Web/API/element "Element" +[EvaluationArgument]: /evaluating.mdx#evaluation-argument "EvaluationArgument" +[Promise]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise "Promise" +[iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols "Iterator" +[origin]: https://developer.mozilla.org/en-US/docs/Glossary/Origin "Origin" +[selector]: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors "selector" +[Serializable]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#Description "Serializable" +[UIEvent.detail]: https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail "UIEvent.detail" +[UnixTime]: https://en.wikipedia.org/wiki/Unix_time "Unix Time" +[xpath]: https://developer.mozilla.org/en-US/docs/Web/XPath "xpath" + +[Array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array "Array" +[boolean]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type "Boolean" +[Buffer]: https://nodejs.org/api/buffer.html#buffer_class_buffer "Buffer" +[ChildProcess]: https://nodejs.org/api/child_process.html "ChildProcess" +[Error]: https://nodejs.org/api/errors.html#errors_class_error "Error" +[EventEmitter]: https://nodejs.org/api/events.html#events_class_eventemitter "EventEmitter" +[function]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function "Function" +[Map]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map "Map" +[null]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null "null" +[number]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type "Number" +[Object]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object "Object" +[Promise]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise "Promise" +[Readable]: https://nodejs.org/api/stream.html#stream_class_stream_readable "Readable" +[ReadStream]: https://nodejs.org/api/fs.html#class-fsreadstream "ReadStream" +[RegExp]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp "RegExp" +[string]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type "string" +[void]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined "void" +[URL]: https://nodejs.org/api/url.html "URL" + +[all available image tags]: https://mcr.microsoft.com/en-us/product/playwright/about "all available image tags" +[Microsoft Artifact Registry]: https://mcr.microsoft.com/en-us/product/playwright/about "Microsoft Artifact Registry" +[Dockerfile.jammy]: https://github.com/microsoft/playwright/blob/main/utils/docker/Dockerfile.jammy "Dockerfile.jammy" diff --git a/nodejs/docs/api/class-playwright.mdx b/nodejs/docs/api/class-playwright.mdx index 78563d5824f..1e02efd4f20 100644 --- a/nodejs/docs/api/class-playwright.mdx +++ b/nodejs/docs/api/class-playwright.mdx @@ -211,6 +211,7 @@ playwright.webkit [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-playwrightassertions.mdx b/nodejs/docs/api/class-playwrightassertions.mdx index 7fbf48c962c..ceace1f1a8b 100644 --- a/nodejs/docs/api/class-playwrightassertions.mdx +++ b/nodejs/docs/api/class-playwrightassertions.mdx @@ -139,6 +139,7 @@ Creates a [PageAssertions] object for the given [Page]. [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-reporter.mdx b/nodejs/docs/api/class-reporter.mdx index 7468e812eb0..1d598189be7 100644 --- a/nodejs/docs/api/class-reporter.mdx +++ b/nodejs/docs/api/class-reporter.mdx @@ -386,6 +386,7 @@ reporter.printsToStdio(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-request.mdx b/nodejs/docs/api/class-request.mdx index e5a399a1ac8..a14a9e63ac4 100644 --- a/nodejs/docs/api/class-request.mdx +++ b/nodejs/docs/api/class-request.mdx @@ -461,6 +461,7 @@ request.url(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-response.mdx b/nodejs/docs/api/class-response.mdx index 901333a86e9..a1640382c0d 100644 --- a/nodejs/docs/api/class-response.mdx +++ b/nodejs/docs/api/class-response.mdx @@ -391,6 +391,7 @@ response.url(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-route.mdx b/nodejs/docs/api/class-route.mdx index 583a3eb2efa..1f5049b90c5 100644 --- a/nodejs/docs/api/class-route.mdx +++ b/nodejs/docs/api/class-route.mdx @@ -318,6 +318,7 @@ route.request(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-selectors.mdx b/nodejs/docs/api/class-selectors.mdx index 31267c205d9..1fed70ca13a 100644 --- a/nodejs/docs/api/class-selectors.mdx +++ b/nodejs/docs/api/class-selectors.mdx @@ -131,6 +131,7 @@ selectors.setTestIdAttribute(attributeName); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-snapshotassertions.mdx b/nodejs/docs/api/class-snapshotassertions.mdx index 8829563a84b..bc3946ccbd7 100644 --- a/nodejs/docs/api/class-snapshotassertions.mdx +++ b/nodejs/docs/api/class-snapshotassertions.mdx @@ -142,6 +142,7 @@ Note that matching snapshots only work with Playwright test runner. [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-suite.mdx b/nodejs/docs/api/class-suite.mdx index f5d91b345b6..a16f9ee570e 100644 --- a/nodejs/docs/api/class-suite.mdx +++ b/nodejs/docs/api/class-suite.mdx @@ -204,6 +204,7 @@ suite.title [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-test.mdx b/nodejs/docs/api/class-test.mdx index 261a950979c..348fc5aa23f 100644 --- a/nodejs/docs/api/class-test.mdx +++ b/nodejs/docs/api/class-test.mdx @@ -1348,6 +1348,7 @@ test.describe.serial.only('group', () => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-testcase.mdx b/nodejs/docs/api/class-testcase.mdx index eef14de5e83..948953dffa5 100644 --- a/nodejs/docs/api/class-testcase.mdx +++ b/nodejs/docs/api/class-testcase.mdx @@ -289,6 +289,7 @@ testCase.title [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-testconfig.mdx b/nodejs/docs/api/class-testconfig.mdx index efebdb354c8..900dd8332a8 100644 --- a/nodejs/docs/api/class-testconfig.mdx +++ b/nodejs/docs/api/class-testconfig.mdx @@ -1029,6 +1029,7 @@ This path will serve as the base directory for each test file snapshot directory [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-testerror.mdx b/nodejs/docs/api/class-testerror.mdx index 60e5355be41..0a4f656cd0c 100644 --- a/nodejs/docs/api/class-testerror.mdx +++ b/nodejs/docs/api/class-testerror.mdx @@ -132,6 +132,7 @@ testError.value [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-testinfo.mdx b/nodejs/docs/api/class-testinfo.mdx index ac1a462313c..b2cdeeeffef 100644 --- a/nodejs/docs/api/class-testinfo.mdx +++ b/nodejs/docs/api/class-testinfo.mdx @@ -880,6 +880,7 @@ testInfo.workerIndex [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-testinfoerror.mdx b/nodejs/docs/api/class-testinfoerror.mdx index fd72c8fdf1a..06ef4bf0566 100644 --- a/nodejs/docs/api/class-testinfoerror.mdx +++ b/nodejs/docs/api/class-testinfoerror.mdx @@ -98,6 +98,7 @@ testInfoError.value [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-testoptions.mdx b/nodejs/docs/api/class-testoptions.mdx index 267177f29d9..783ec610560 100644 --- a/nodejs/docs/api/class-testoptions.mdx +++ b/nodejs/docs/api/class-testoptions.mdx @@ -1035,6 +1035,7 @@ export default defineConfig({ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-testproject.mdx b/nodejs/docs/api/class-testproject.mdx index bd5ddadfbe2..f733d048464 100644 --- a/nodejs/docs/api/class-testproject.mdx +++ b/nodejs/docs/api/class-testproject.mdx @@ -667,6 +667,7 @@ testProject.use [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-testresult.mdx b/nodejs/docs/api/class-testresult.mdx index 8a0188c3d77..8b13ed0a3e3 100644 --- a/nodejs/docs/api/class-testresult.mdx +++ b/nodejs/docs/api/class-testresult.mdx @@ -267,6 +267,7 @@ testResult.workerIndex [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-teststep.mdx b/nodejs/docs/api/class-teststep.mdx index 8b762f1c4e9..b68cd04b446 100644 --- a/nodejs/docs/api/class-teststep.mdx +++ b/nodejs/docs/api/class-teststep.mdx @@ -206,6 +206,7 @@ testStep.title [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-timeouterror.mdx b/nodejs/docs/api/class-timeouterror.mdx index eabd0b838a4..9bbf23700c5 100644 --- a/nodejs/docs/api/class-timeouterror.mdx +++ b/nodejs/docs/api/class-timeouterror.mdx @@ -65,6 +65,7 @@ const playwright = require('playwright'); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-touchscreen.mdx b/nodejs/docs/api/class-touchscreen.mdx index 58fab310e41..12802f7c23a 100644 --- a/nodejs/docs/api/class-touchscreen.mdx +++ b/nodejs/docs/api/class-touchscreen.mdx @@ -69,6 +69,7 @@ await touchscreen.tap(x, y); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-tracing.mdx b/nodejs/docs/api/class-tracing.mdx index f1c4ab18299..b2372896523 100644 --- a/nodejs/docs/api/class-tracing.mdx +++ b/nodejs/docs/api/class-tracing.mdx @@ -172,6 +172,7 @@ await tracing.stopChunk(options); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-video.mdx b/nodejs/docs/api/class-video.mdx index 6ad5c74f171..741197b984e 100644 --- a/nodejs/docs/api/class-video.mdx +++ b/nodejs/docs/api/class-video.mdx @@ -101,6 +101,7 @@ await video.saveAs(path); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-websocket.mdx b/nodejs/docs/api/class-websocket.mdx index 5db7b704476..9daaf747c53 100644 --- a/nodejs/docs/api/class-websocket.mdx +++ b/nodejs/docs/api/class-websocket.mdx @@ -193,6 +193,7 @@ webSocket.on('socketerror', data => {}); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-worker.mdx b/nodejs/docs/api/class-worker.mdx index e85c3210127..9971bc4d5a1 100644 --- a/nodejs/docs/api/class-worker.mdx +++ b/nodejs/docs/api/class-worker.mdx @@ -152,6 +152,7 @@ worker.on('close', data => {}); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/api/class-workerinfo.mdx b/nodejs/docs/api/class-workerinfo.mdx index 2388d1a89e9..01e1b15dfc1 100644 --- a/nodejs/docs/api/class-workerinfo.mdx +++ b/nodejs/docs/api/class-workerinfo.mdx @@ -119,6 +119,7 @@ workerInfo.workerIndex [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/auth.mdx b/nodejs/docs/auth.mdx index ceaa2ed06e3..16f74b3a399 100644 --- a/nodejs/docs/auth.mdx +++ b/nodejs/docs/auth.mdx @@ -543,6 +543,7 @@ test('not signed in test', async ({ page }) => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/best-practices.mdx b/nodejs/docs/best-practices.mdx index 6a81e4c38ab..70e038a59e4 100644 --- a/nodejs/docs/best-practices.mdx +++ b/nodejs/docs/best-practices.mdx @@ -336,6 +336,7 @@ await page.getByRole('link', { name: 'next page' }).click(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/browser-contexts.mdx b/nodejs/docs/browser-contexts.mdx index c734be95832..2ce82404889 100644 --- a/nodejs/docs/browser-contexts.mdx +++ b/nodejs/docs/browser-contexts.mdx @@ -147,6 +147,7 @@ const userPage = await userContext.newPage(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/browsers.mdx b/nodejs/docs/browsers.mdx index 721dc226d10..9a1cb7c3dbd 100644 --- a/nodejs/docs/browsers.mdx +++ b/nodejs/docs/browsers.mdx @@ -691,6 +691,7 @@ npx playwright uninstall --all [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/canary-releases.mdx b/nodejs/docs/canary-releases.mdx index 7b2ecb8d285..5a47d26f66f 100644 --- a/nodejs/docs/canary-releases.mdx +++ b/nodejs/docs/canary-releases.mdx @@ -74,6 +74,7 @@ The stable and the `next` documentation is published on [playwright.dev](https:/ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/chrome-extensions.mdx b/nodejs/docs/chrome-extensions.mdx index a999c5cd33c..6b06feb9e90 100644 --- a/nodejs/docs/chrome-extensions.mdx +++ b/nodejs/docs/chrome-extensions.mdx @@ -152,6 +152,7 @@ const context = await chromium.launchPersistentContext('', { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/ci-intro.mdx b/nodejs/docs/ci-intro.mdx index 8aa0c3750b9..fd340213c20 100644 --- a/nodejs/docs/ci-intro.mdx +++ b/nodejs/docs/ci-intro.mdx @@ -147,6 +147,7 @@ To learn more about running tests on CI check out our detailed guide on [Continu [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/ci.mdx b/nodejs/docs/ci.mdx index 019baff6ad5..670f3806a80 100644 --- a/nodejs/docs/ci.mdx +++ b/nodejs/docs/ci.mdx @@ -130,7 +130,7 @@ jobs: name: 'Playwright Tests' runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.37.0-jammy + image: mcr.microsoft.com/playwright:v1.37.1-jammy steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -158,7 +158,7 @@ jobs: name: 'Playwright Tests - ${{ matrix.project }} - Shard ${{ matrix.shard }}' runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.37.0-jammy + image: mcr.microsoft.com/playwright:v1.37.1-jammy strategy: fail-fast: false matrix: @@ -360,7 +360,7 @@ trigger: pool: vmImage: ubuntu-latest -container: mcr.microsoft.com/playwright:v1.37.0-jammy +container: mcr.microsoft.com/playwright:v1.37.1-jammy steps: - task: NodeTool@0 @@ -384,7 +384,7 @@ Running Playwright on CircleCI is very similar to running on GitHub Actions. In executors: pw-jammy-development: docker: - - image: mcr.microsoft.com/playwright:v1.37.0-jammy + - image: mcr.microsoft.com/playwright:v1.37.1-jammy ``` Note: When using the docker agent definition, you are specifying the resource class of where playwright runs to the 'medium' tier [here](https://circleci.com/docs/configuration-reference?#docker-execution-environment). The default behavior of Playwright is to set the number of workers to the detected core count (2 in the case of the medium tier). Overriding the number of workers to greater than this number will cause unnecessary timeouts and failures. @@ -407,7 +407,7 @@ Jenkins supports Docker agents for pipelines. Use the [Playwright Docker image]( ```groovy pipeline { - agent { docker { image 'mcr.microsoft.com/playwright:v1.37.0-jammy' } } + agent { docker { image 'mcr.microsoft.com/playwright:v1.37.1-jammy' } } stages { stage('e2e-tests') { steps { @@ -424,7 +424,7 @@ pipeline { Bitbucket Pipelines can use public [Docker images as build environments](https://confluence.atlassian.com/bitbucket/use-docker-images-as-build-environments-792298897.html). To run Playwright tests on Bitbucket, use our public Docker image ([see Dockerfile](./docker.mdx)). ```yml -image: mcr.microsoft.com/playwright:v1.37.0-jammy +image: mcr.microsoft.com/playwright:v1.37.1-jammy ``` ### GitLab CI @@ -437,7 +437,7 @@ stages: tests: stage: test - image: mcr.microsoft.com/playwright:v1.37.0-jammy + image: mcr.microsoft.com/playwright:v1.37.1-jammy script: ... ``` @@ -452,7 +452,7 @@ stages: tests: stage: test - image: mcr.microsoft.com/playwright:v1.37.0-jammy + image: mcr.microsoft.com/playwright:v1.37.1-jammy parallel: 7 script: - npm ci @@ -467,7 +467,7 @@ stages: tests: stage: test - image: mcr.microsoft.com/playwright:v1.37.0-jammy + image: mcr.microsoft.com/playwright:v1.37.1-jammy parallel: matrix: - PROJECT: ['chromium', 'webkit'] @@ -542,6 +542,7 @@ xvfb-run node index.js [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/codegen-intro.mdx b/nodejs/docs/codegen-intro.mdx index e883d187855..594f1151bbe 100644 --- a/nodejs/docs/codegen-intro.mdx +++ b/nodejs/docs/codegen-intro.mdx @@ -86,6 +86,7 @@ You can also generate tests using emulation so as to generate a test for a speci [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/codegen.mdx b/nodejs/docs/codegen.mdx index d8c16130908..63ca017936d 100644 --- a/nodejs/docs/codegen.mdx +++ b/nodejs/docs/codegen.mdx @@ -219,6 +219,7 @@ const { chromium } = require('@playwright/test'); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/debug.mdx b/nodejs/docs/debug.mdx index a79859ac775..c24c3f88a51 100644 --- a/nodejs/docs/debug.mdx +++ b/nodejs/docs/debug.mdx @@ -345,6 +345,7 @@ await chromium.launch({ headless: false, slowMo: 100 }); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/dialogs.mdx b/nodejs/docs/dialogs.mdx index 9dc6e8be028..139a23a2925 100644 --- a/nodejs/docs/dialogs.mdx +++ b/nodejs/docs/dialogs.mdx @@ -85,6 +85,7 @@ await page.close({ runBeforeUnload: true }); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/docker.mdx b/nodejs/docs/docker.mdx index e86396a2794..5a04ec3f9a3 100644 --- a/nodejs/docs/docker.mdx +++ b/nodejs/docs/docker.mdx @@ -23,7 +23,7 @@ This Docker image is intended to be used for testing and development purposes on ### Pull the image ```bash -docker pull mcr.microsoft.com/playwright:v1.37.0-jammy +docker pull mcr.microsoft.com/playwright:v1.37.1-jammy ``` ### Run the image @@ -35,7 +35,7 @@ By default, the Docker image will use the `root` user to run the browsers. This On trusted websites, you can avoid creating a separate user and use root for it since you trust the code which will run on the browsers. ```bash -docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.37.0-jammy /bin/bash +docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.37.1-jammy /bin/bash ``` #### Crawling and scraping @@ -43,7 +43,7 @@ docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.37.0-jammy /bin/b On untrusted websites, it's recommended to use a separate user for launching the browsers in combination with the seccomp profile. Inside the container or if you are using the Docker image as a base image you have to use `adduser` for it. ```bash -docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.37.0-jammy /bin/bash +docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.37.1-jammy /bin/bash ``` [`seccomp_profile.json`](https://github.com/microsoft/playwright/blob/main/utils/docker/seccomp_profile.json) is needed to run Chromium with sandbox. This is a [default Docker seccomp profile](https://github.com/docker/engine/blob/d0d99b04cf6e00ed3fc27e81fc3d94e7eda70af3/profiles/seccomp/default.json) with extra user namespace cloning permissions: @@ -148,6 +148,7 @@ docker run --rm -it playwright:localbuild /bin/bash [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/downloads.mdx b/nodejs/docs/downloads.mdx index 76cb36031a3..b85895a97a3 100644 --- a/nodejs/docs/downloads.mdx +++ b/nodejs/docs/downloads.mdx @@ -75,6 +75,7 @@ For uploading files, see the [uploading files](./input.mdx#upload-files) section [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/emulation.mdx b/nodejs/docs/emulation.mdx index a3b4b35fc27..153a95517c3 100644 --- a/nodejs/docs/emulation.mdx +++ b/nodejs/docs/emulation.mdx @@ -608,6 +608,7 @@ const context = await browser.newContext({ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/evaluating.mdx b/nodejs/docs/evaluating.mdx index 8bb77bc9c4a..e1a334f9b37 100644 --- a/nodejs/docs/evaluating.mdx +++ b/nodejs/docs/evaluating.mdx @@ -125,6 +125,7 @@ const result = await page.evaluate(() => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/events.mdx b/nodejs/docs/events.mdx index d33bc853186..e6b2ebff622 100644 --- a/nodejs/docs/events.mdx +++ b/nodejs/docs/events.mdx @@ -90,6 +90,7 @@ await page.evaluate("prompt('Enter a number:')"); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/extensibility.mdx b/nodejs/docs/extensibility.mdx index 74cc0db7350..e2b498ff1cf 100644 --- a/nodejs/docs/extensibility.mdx +++ b/nodejs/docs/extensibility.mdx @@ -23,8 +23,10 @@ Selectors must be registered before creating the page. An example of registering selector engine that queries elements based on a tag name: -```js -import { test, expect } from '@playwright/test'; +```js title="baseTest.ts" +import { test as base } from '@playwright/test'; + +export { expect } from '@playwright/test'; // Must be a function that evaluates to a selector engine instance. const createTagNameEngine = () => ({ @@ -39,11 +41,18 @@ const createTagNameEngine = () => ({ } }); -// Register selectors before any page is created. -test.beforeAll(async ({ playwright }) => { - // Register the engine. Selectors will be prefixed with "tag=". - await playwright.selectors.register('tag', createTagNameEngine); +export const test = base.extend<{}, { selectorRegistration: void }>({ + // Register selectors once per worker. + selectorRegistration: [async ({ playwright }, use) => { + // Register the engine. Selectors will be prefixed with "tag=". + await playwright.selectors.register('tag', createTagNameEngine); + await use(); + }, { scope: 'worker', auto: true }], }); +``` + +```js title="example.spec.ts" +import { test, expect } from './baseTest'; test('selector engine test', async ({ page }) => { // Now we can use 'tag=' selectors. @@ -93,6 +102,7 @@ test('selector engine test', async ({ page }) => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/frames.mdx b/nodejs/docs/frames.mdx index d21a0c82e6a..8454dece8db 100644 --- a/nodejs/docs/frames.mdx +++ b/nodejs/docs/frames.mdx @@ -66,6 +66,7 @@ await frame.fill('#username-input', 'John'); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/getting-started-vscode.mdx b/nodejs/docs/getting-started-vscode.mdx index fb0d216ea08..3428e606e3e 100644 --- a/nodejs/docs/getting-started-vscode.mdx +++ b/nodejs/docs/getting-started-vscode.mdx @@ -174,6 +174,7 @@ Playwright will look at your page and figure out the best locator, prioritizing [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/handles.mdx b/nodejs/docs/handles.mdx index eb4ba6bc883..067ef47a51b 100644 --- a/nodejs/docs/handles.mdx +++ b/nodejs/docs/handles.mdx @@ -148,6 +148,7 @@ await locator.click(); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/input.mdx b/nodejs/docs/input.mdx index 2e9e51abfd1..3eb8e5c1b20 100644 --- a/nodejs/docs/input.mdx +++ b/nodejs/docs/input.mdx @@ -259,6 +259,7 @@ If your page relies on the `dragover` event being dispatched, you need at least [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/intro.mdx b/nodejs/docs/intro.mdx index da148b7d429..22fd7b52157 100644 --- a/nodejs/docs/intro.mdx +++ b/nodejs/docs/intro.mdx @@ -143,6 +143,7 @@ npx playwright show-report [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/languages.mdx b/nodejs/docs/languages.mdx index a7829cf83c4..13661225277 100644 --- a/nodejs/docs/languages.mdx +++ b/nodejs/docs/languages.mdx @@ -67,6 +67,7 @@ Playwright for .NET comes with [NUnit base classes](https://playwright.dev/dotne [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/library.mdx b/nodejs/docs/library.mdx index dfe7cd27cf7..be1c406e82b 100644 --- a/nodejs/docs/library.mdx +++ b/nodejs/docs/library.mdx @@ -273,6 +273,7 @@ let page: import('playwright').Page; [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/locators.mdx b/nodejs/docs/locators.mdx index af0ac7640ce..25e6323629b 100644 --- a/nodejs/docs/locators.mdx +++ b/nodejs/docs/locators.mdx @@ -949,6 +949,7 @@ For less commonly used locators, look at the [other locators](./other-locators.m [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/mock-browser.mdx b/nodejs/docs/mock-browser.mdx index 3dea149f106..e110826779f 100644 --- a/nodejs/docs/mock-browser.mdx +++ b/nodejs/docs/mock-browser.mdx @@ -182,6 +182,7 @@ test('update battery status (no golden)', async ({ page }) => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/mock.mdx b/nodejs/docs/mock.mdx index 0443888b807..ec98f9416d2 100644 --- a/nodejs/docs/mock.mdx +++ b/nodejs/docs/mock.mdx @@ -186,6 +186,7 @@ Read more about [advanced networking](./network.mdx). [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/navigations.mdx b/nodejs/docs/navigations.mdx index 985c5cc337e..bdea2e8be11 100644 --- a/nodejs/docs/navigations.mdx +++ b/nodejs/docs/navigations.mdx @@ -108,6 +108,7 @@ Playwright splits the process of showing a new document in a page into **navigat [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/network.mdx b/nodejs/docs/network.mdx index 21279b9d608..e6876fd939c 100644 --- a/nodejs/docs/network.mdx +++ b/nodejs/docs/network.mdx @@ -352,6 +352,7 @@ Playwright's built-in [browserContext.route()](/api/class-browsercontext.mdx#bro [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/other-locators.mdx b/nodejs/docs/other-locators.mdx index e47b7e5d297..91c0f89baaf 100644 --- a/nodejs/docs/other-locators.mdx +++ b/nodejs/docs/other-locators.mdx @@ -499,6 +499,7 @@ For example, `css=article >> text=Hello` captures the element with the text `Hel [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/pages.mdx b/nodejs/docs/pages.mdx index 227c0d36a23..58418ecacc6 100644 --- a/nodejs/docs/pages.mdx +++ b/nodejs/docs/pages.mdx @@ -129,6 +129,7 @@ page.on('popup', async popup => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/pom.mdx b/nodejs/docs/pom.mdx index be9d9ffab47..c404e87f440 100644 --- a/nodejs/docs/pom.mdx +++ b/nodejs/docs/pom.mdx @@ -271,6 +271,7 @@ await expect(playwrightDev.tocList).toHaveText([ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/protractor.mdx b/nodejs/docs/protractor.mdx index 8b5bcf53788..0d291777e8f 100644 --- a/nodejs/docs/protractor.mdx +++ b/nodejs/docs/protractor.mdx @@ -208,6 +208,7 @@ Learn more about Playwright Test runner: [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/puppeteer.mdx b/nodejs/docs/puppeteer.mdx index b312e19240f..c3568d50638 100644 --- a/nodejs/docs/puppeteer.mdx +++ b/nodejs/docs/puppeteer.mdx @@ -213,6 +213,7 @@ Learn more about Playwright Test runner: [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/release-notes.mdx b/nodejs/docs/release-notes.mdx index 68c0a60cf50..a9a25a2faad 100644 --- a/nodejs/docs/release-notes.mdx +++ b/nodejs/docs/release-notes.mdx @@ -1911,6 +1911,7 @@ This version of Playwright was also tested against the following stable channels [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/running-tests.mdx b/nodejs/docs/running-tests.mdx index 417b34620c8..da680eb35ff 100644 --- a/nodejs/docs/running-tests.mdx +++ b/nodejs/docs/running-tests.mdx @@ -142,6 +142,7 @@ You can click on each test and explore the tests errors as well as each step of [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/screenshots.mdx b/nodejs/docs/screenshots.mdx index 291dc0dea00..a9b79ad1db3 100644 --- a/nodejs/docs/screenshots.mdx +++ b/nodejs/docs/screenshots.mdx @@ -78,6 +78,7 @@ await page.locator('.header').screenshot({ path: 'screenshot.png' }); [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/selenium-grid.mdx b/nodejs/docs/selenium-grid.mdx index 4282746418d..1cee4abf5db 100644 --- a/nodejs/docs/selenium-grid.mdx +++ b/nodejs/docs/selenium-grid.mdx @@ -156,6 +156,7 @@ This means that Selenium 3 is supported in a best-effort manner, where Playwrigh [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/service-workers-experimental-network-events.mdx b/nodejs/docs/service-workers-experimental-network-events.mdx index 69d94c06e2d..405a0080aae 100644 --- a/nodejs/docs/service-workers-experimental-network-events.mdx +++ b/nodejs/docs/service-workers-experimental-network-events.mdx @@ -259,6 +259,7 @@ Requests for updated Service Worker main script code currently cannot be routed [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-annotations.mdx b/nodejs/docs/test-annotations.mdx index afaa4a2f834..16d3c8025c0 100644 --- a/nodejs/docs/test-annotations.mdx +++ b/nodejs/docs/test-annotations.mdx @@ -206,6 +206,7 @@ test('user profile', async ({ page }) => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-assertions.mdx b/nodejs/docs/test-assertions.mdx index 94b478c8094..4f7910f5f2c 100644 --- a/nodejs/docs/test-assertions.mdx +++ b/nodejs/docs/test-assertions.mdx @@ -266,6 +266,7 @@ await expect(async () => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-cli.mdx b/nodejs/docs/test-cli.mdx index bfb469634b0..c613cf3f926 100644 --- a/nodejs/docs/test-cli.mdx +++ b/nodejs/docs/test-cli.mdx @@ -151,6 +151,7 @@ Complete set of Playwright Test options is available in the [configuration file] [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-components.mdx b/nodejs/docs/test-components.mdx index eb67c293446..7f8318087a5 100644 --- a/nodejs/docs/test-components.mdx +++ b/nodejs/docs/test-components.mdx @@ -608,6 +608,7 @@ test('override initialState ', async ({ mount }) => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-configuration.mdx b/nodejs/docs/test-configuration.mdx index aeb94bcfc48..bf286b3b9d9 100644 --- a/nodejs/docs/test-configuration.mdx +++ b/nodejs/docs/test-configuration.mdx @@ -285,6 +285,7 @@ declare global { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-fixtures.mdx b/nodejs/docs/test-fixtures.mdx index f11578dd47c..a0c0a52a009 100644 --- a/nodejs/docs/test-fixtures.mdx +++ b/nodejs/docs/test-fixtures.mdx @@ -1335,6 +1335,7 @@ A few observations: [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-global-setup-teardown.mdx b/nodejs/docs/test-global-setup-teardown.mdx index d8415fd34bd..a963265f737 100644 --- a/nodejs/docs/test-global-setup-teardown.mdx +++ b/nodejs/docs/test-global-setup-teardown.mdx @@ -381,6 +381,7 @@ export default globalSetup; [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-parallel.mdx b/nodejs/docs/test-parallel.mdx index 72345e6eb50..b5b666cbe27 100644 --- a/nodejs/docs/test-parallel.mdx +++ b/nodejs/docs/test-parallel.mdx @@ -264,6 +264,7 @@ Do not define your tests directly in a helper file. This could lead to unexpecte [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-parameterize.mdx b/nodejs/docs/test-parameterize.mdx index 5974367daba..daecc47dc61 100644 --- a/nodejs/docs/test-parameterize.mdx +++ b/nodejs/docs/test-parameterize.mdx @@ -403,6 +403,7 @@ for (const record of records) { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-projects.mdx b/nodejs/docs/test-projects.mdx index b9469d06122..645c7de2e12 100644 --- a/nodejs/docs/test-projects.mdx +++ b/nodejs/docs/test-projects.mdx @@ -253,6 +253,7 @@ Projects can be also used to parametrize tests with your custom configuration - [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-reporters.mdx b/nodejs/docs/test-reporters.mdx index d72733e2bea..673d574c6b2 100644 --- a/nodejs/docs/test-reporters.mdx +++ b/nodejs/docs/test-reporters.mdx @@ -409,6 +409,7 @@ export default defineConfig({ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-retries.mdx b/nodejs/docs/test-retries.mdx index bca83dea1ae..21f2b29c022 100644 --- a/nodejs/docs/test-retries.mdx +++ b/nodejs/docs/test-retries.mdx @@ -268,6 +268,7 @@ test('runs second', async () => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-sharding.mdx b/nodejs/docs/test-sharding.mdx index b695d248dfb..488accbce55 100644 --- a/nodejs/docs/test-sharding.mdx +++ b/nodejs/docs/test-sharding.mdx @@ -228,6 +228,7 @@ Supported options: [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-snapshots.mdx b/nodejs/docs/test-snapshots.mdx index 4ffedb4fc55..36e34aaa042 100644 --- a/nodejs/docs/test-snapshots.mdx +++ b/nodejs/docs/test-snapshots.mdx @@ -46,7 +46,7 @@ The snapshot name `example-test-1-chromium-darwin.png` consists of a few parts: If you are not on the same operating system as your CI system, you can use Docker to generate/update the screenshots: ```bash -docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.37.0-jammy /bin/bash +docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.37.1-jammy /bin/bash npm install npx playwright test --update-snapshots ``` @@ -132,6 +132,7 @@ Snapshots are stored next to the test file, in a separate directory. For example [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-timeouts.mdx b/nodejs/docs/test-timeouts.mdx index 270cbfedb7c..ff4192b35e3 100644 --- a/nodejs/docs/test-timeouts.mdx +++ b/nodejs/docs/test-timeouts.mdx @@ -273,6 +273,7 @@ API reference: [test.extend()](/api/class-test.mdx#test-extend). [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-typescript.mdx b/nodejs/docs/test-typescript.mdx index 862777bf936..b0ff2e50e67 100644 --- a/nodejs/docs/test-typescript.mdx +++ b/nodejs/docs/test-typescript.mdx @@ -139,6 +139,7 @@ await page.evaluate(`async () => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-ui-mode.mdx b/nodejs/docs/test-ui-mode.mdx index 9b6506831da..ef268c409f9 100644 --- a/nodejs/docs/test-ui-mode.mdx +++ b/nodejs/docs/test-ui-mode.mdx @@ -135,6 +135,7 @@ Be aware that when specifying the `--ui-host=0.0.0.0` flag, UI Mode with your tr [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-use-options.mdx b/nodejs/docs/test-use-options.mdx index e45f5e05fcd..5315bc39fe7 100644 --- a/nodejs/docs/test-use-options.mdx +++ b/nodejs/docs/test-use-options.mdx @@ -328,6 +328,7 @@ test.describe('french language block', () => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/test-webserver.mdx b/nodejs/docs/test-webserver.mdx index 91973d8af58..54661b2dc40 100644 --- a/nodejs/docs/test-webserver.mdx +++ b/nodejs/docs/test-webserver.mdx @@ -154,6 +154,7 @@ export default defineConfig({ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/testing-library.mdx b/nodejs/docs/testing-library.mdx index e513426845e..d0f46c0338e 100644 --- a/nodejs/docs/testing-library.mdx +++ b/nodejs/docs/testing-library.mdx @@ -191,6 +191,7 @@ Learn more about Playwright Test runner: [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/trace-viewer-intro.mdx b/nodejs/docs/trace-viewer-intro.mdx index ae75fa5b6c8..60ffb54c5db 100644 --- a/nodejs/docs/trace-viewer-intro.mdx +++ b/nodejs/docs/trace-viewer-intro.mdx @@ -105,6 +105,7 @@ To learn more about traces check out our detailed guide on [Trace Viewer](/trace [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/trace-viewer.mdx b/nodejs/docs/trace-viewer.mdx index 7ac8f021b8f..5feed53e5c7 100644 --- a/nodejs/docs/trace-viewer.mdx +++ b/nodejs/docs/trace-viewer.mdx @@ -229,6 +229,7 @@ https://trace.playwright.dev/?trace=https://demo.playwright.dev/reports/todomvc/ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/videos.mdx b/nodejs/docs/videos.mdx index 88efb1b7a18..01e589a6757 100644 --- a/nodejs/docs/videos.mdx +++ b/nodejs/docs/videos.mdx @@ -135,6 +135,7 @@ Note that the video is only available after the page or browser context is close [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/webview2.mdx b/nodejs/docs/webview2.mdx index 90ea2997646..9e1e1ace228 100644 --- a/nodejs/docs/webview2.mdx +++ b/nodejs/docs/webview2.mdx @@ -150,6 +150,7 @@ For debugging tests, see the Playwright [Debugging guide](./debug). [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/why-playwright.mdx b/nodejs/docs/why-playwright.mdx index 52ce002e59a..9dd15d72cde 100644 --- a/nodejs/docs/why-playwright.mdx +++ b/nodejs/docs/why-playwright.mdx @@ -66,6 +66,7 @@ Playwright enables fast, reliable and capable testing and automation across all [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/nodejs/docs/writing-tests.mdx b/nodejs/docs/writing-tests.mdx index b78c96c0cbe..3662e9d0886 100644 --- a/nodejs/docs/writing-tests.mdx +++ b/nodejs/docs/writing-tests.mdx @@ -199,6 +199,7 @@ test.describe('navigation', () => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [PlaywrightAssertions]: /api/class-playwrightassertions.mdx "PlaywrightAssertions" [Request]: /api/class-request.mdx "Request" diff --git a/python/docs/actionability.mdx b/python/docs/actionability.mdx index 716d9e08de0..d1dee780a9e 100644 --- a/python/docs/actionability.mdx +++ b/python/docs/actionability.mdx @@ -131,6 +131,7 @@ For example, consider a scenario where Playwright will click `Sign Up` button re [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api-testing.mdx b/python/docs/api-testing.mdx index 83082abe7cb..981b269d23a 100644 --- a/python/docs/api-testing.mdx +++ b/python/docs/api-testing.mdx @@ -310,6 +310,7 @@ context = browser.new_context(storage_state=state) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-accessibility.mdx b/python/docs/api/class-accessibility.mdx index c2793594690..1d704c116e3 100644 --- a/python/docs/api/class-accessibility.mdx +++ b/python/docs/api/class-accessibility.mdx @@ -231,6 +231,7 @@ if node: [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-apirequest.mdx b/python/docs/api/class-apirequest.mdx index 9a28fb282f8..fac223f075d 100644 --- a/python/docs/api/class-apirequest.mdx +++ b/python/docs/api/class-apirequest.mdx @@ -143,6 +143,7 @@ api_request.new_context(**kwargs) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-apirequestcontext.mdx b/python/docs/api/class-apirequestcontext.mdx index 6ef680a2de2..22fb9068d0a 100644 --- a/python/docs/api/class-apirequestcontext.mdx +++ b/python/docs/api/class-apirequestcontext.mdx @@ -705,6 +705,7 @@ api_request_context.storage_state(**kwargs) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-apiresponse.mdx b/python/docs/api/class-apiresponse.mdx index 28c5bcc1abb..56681993e39 100644 --- a/python/docs/api/class-apiresponse.mdx +++ b/python/docs/api/class-apiresponse.mdx @@ -264,6 +264,7 @@ api_response.url [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-apiresponseassertions.mdx b/python/docs/api/class-apiresponseassertions.mdx index 1de60d23492..1927767335f 100644 --- a/python/docs/api/class-apiresponseassertions.mdx +++ b/python/docs/api/class-apiresponseassertions.mdx @@ -126,6 +126,7 @@ await expect(response).to_be_ok() [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-browser.mdx b/python/docs/api/class-browser.mdx index 91f2edd251f..44a6dc95015 100644 --- a/python/docs/api/class-browser.mdx +++ b/python/docs/api/class-browser.mdx @@ -795,6 +795,7 @@ browser.on("disconnected", handler) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-browsercontext.mdx b/python/docs/api/class-browsercontext.mdx index 8673dd2d536..b4ac9cb7954 100644 --- a/python/docs/api/class-browsercontext.mdx +++ b/python/docs/api/class-browsercontext.mdx @@ -1470,6 +1470,23 @@ browser_context.on("page", handler) --- +### on("pageerror") {#browser-context-event-page-error} + +Added in: v1.38browserContext.on("pageerror") + +Emitted when unhandled exceptions occur on any pages created through this context. To only listen for `pageError` events from a particular page, use [page.on("pageerror")](/api/class-page.mdx#page-event-page-error). + +**Usage** + +```python +browser_context.on("pageerror", handler) +``` + +**Event data** +- [PageError] + +--- + ### on("request") {#browser-context-event-request} Added in: v1.12browserContext.on("request") @@ -1588,6 +1605,7 @@ browser_context.on("serviceworker", handler) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-browsertype.mdx b/python/docs/api/class-browsertype.mdx index 0e69588b8d0..81cfad032e1 100644 --- a/python/docs/api/class-browsertype.mdx +++ b/python/docs/api/class-browsertype.mdx @@ -557,6 +557,7 @@ browser_type.name [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-cdpsession.mdx b/python/docs/api/class-cdpsession.mdx index 700531ba570..87d58e258bd 100644 --- a/python/docs/api/class-cdpsession.mdx +++ b/python/docs/api/class-cdpsession.mdx @@ -120,6 +120,7 @@ cdp_session.send(method, **kwargs) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-consolemessage.mdx b/python/docs/api/class-consolemessage.mdx index 2c39612ba3a..0f6d7f8d4f2 100644 --- a/python/docs/api/class-consolemessage.mdx +++ b/python/docs/api/class-consolemessage.mdx @@ -181,6 +181,7 @@ console_message.type [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-dialog.mdx b/python/docs/api/class-dialog.mdx index a45b7101678..79ccda543ee 100644 --- a/python/docs/api/class-dialog.mdx +++ b/python/docs/api/class-dialog.mdx @@ -204,6 +204,7 @@ dialog.type [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-download.mdx b/python/docs/api/class-download.mdx index 922974afd41..8aedfb44c1e 100644 --- a/python/docs/api/class-download.mdx +++ b/python/docs/api/class-download.mdx @@ -235,6 +235,7 @@ download.url [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-elementhandle.mdx b/python/docs/api/class-elementhandle.mdx index 083dd67783d..c41e3903a1c 100644 --- a/python/docs/api/class-elementhandle.mdx +++ b/python/docs/api/class-elementhandle.mdx @@ -1515,6 +1515,7 @@ This method does not work across navigations, use [page.wait_for_selector()](/ap [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-error.mdx b/python/docs/api/class-error.mdx index 3c76b1802e7..27ddfd837f8 100644 --- a/python/docs/api/class-error.mdx +++ b/python/docs/api/class-error.mdx @@ -89,6 +89,7 @@ error.stack [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-filechooser.mdx b/python/docs/api/class-filechooser.mdx index 73a1943c75d..973c9afa95e 100644 --- a/python/docs/api/class-filechooser.mdx +++ b/python/docs/api/class-filechooser.mdx @@ -153,6 +153,7 @@ file_chooser.page [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-frame.mdx b/python/docs/api/class-frame.mdx index 4cc2a51f342..78fa49bffd4 100644 --- a/python/docs/api/class-frame.mdx +++ b/python/docs/api/class-frame.mdx @@ -3147,6 +3147,7 @@ frame.wait_for_timeout(timeout) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-framelocator.mdx b/python/docs/api/class-framelocator.mdx index e62bbc3c537..0f6de53d7a3 100644 --- a/python/docs/api/class-framelocator.mdx +++ b/python/docs/api/class-framelocator.mdx @@ -715,6 +715,7 @@ frame_locator.last [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-jshandle.mdx b/python/docs/api/class-jshandle.mdx index 79c66074394..becea541ad4 100644 --- a/python/docs/api/class-jshandle.mdx +++ b/python/docs/api/class-jshandle.mdx @@ -273,6 +273,7 @@ js_handle.as_element() [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-keyboard.mdx b/python/docs/api/class-keyboard.mdx index 4c2e99cddca..b665b2634c6 100644 --- a/python/docs/api/class-keyboard.mdx +++ b/python/docs/api/class-keyboard.mdx @@ -364,6 +364,7 @@ keyboard.up(key) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-locator.mdx b/python/docs/api/class-locator.mdx index 12b3c515d22..c706bb675d0 100644 --- a/python/docs/api/class-locator.mdx +++ b/python/docs/api/class-locator.mdx @@ -3076,6 +3076,7 @@ locator.element_handles() [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-locatorassertions.mdx b/python/docs/api/class-locatorassertions.mdx index bdf42234963..c1198dccfbc 100644 --- a/python/docs/api/class-locatorassertions.mdx +++ b/python/docs/api/class-locatorassertions.mdx @@ -1677,6 +1677,7 @@ await expect(locator).to_have_values([re.compile(r"R"), re.compile(r"G")]) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-mouse.mdx b/python/docs/api/class-mouse.mdx index 598cf3f39b8..f45b2d235d0 100644 --- a/python/docs/api/class-mouse.mdx +++ b/python/docs/api/class-mouse.mdx @@ -224,6 +224,7 @@ mouse.wheel(delta_x, delta_y) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-page.mdx b/python/docs/api/class-page.mdx index fb2d42a4217..a5f101c555f 100644 --- a/python/docs/api/class-page.mdx +++ b/python/docs/api/class-page.mdx @@ -5377,6 +5377,7 @@ await page.wait_for_timeout(1000) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-pageassertions.mdx b/python/docs/api/class-pageassertions.mdx index 453f4c26833..0ad32bc3db2 100644 --- a/python/docs/api/class-pageassertions.mdx +++ b/python/docs/api/class-pageassertions.mdx @@ -219,6 +219,7 @@ await expect(page).to_have_url(re.compile(".*checkout")) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-pageerror.mdx b/python/docs/api/class-pageerror.mdx new file mode 100644 index 00000000000..29b90fca333 --- /dev/null +++ b/python/docs/api/class-pageerror.mdx @@ -0,0 +1,149 @@ +--- +id: class-pageerror +title: "PageError" +--- +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +import HTMLCard from '@site/src/components/HTMLCard'; + + +[PageError] class represents objects created by context when there are unhandled execeptions thrown on the pages and dispatched via the [browser_context.on("pageerror")](/api/class-browsercontext.mdx#browser-context-event-page-error) event. + + + + +```py +# Log all uncaught errors to the terminal +context.on("pageerror", lambda pageerror: print(f"uncaught exception: {pageerror.error}")) + +# Navigate to a page with an exception. +page.goto("data:text/html,") +``` + + + + +```py +# Log all uncaught errors to the terminal +context.on("pageerror", lambda pageerror: print(f"uncaught exception: {pageerror.error}")) + +# Navigate to a page with an exception. +await page.goto("data:text/html,") +``` + + + + + +--- + +## Properties + +### error {#page-error-error} + +Added in: v1.38pageError.error + +Unhandled error that was thrown. + +**Usage** + +```python +page_error.error +``` + +**Returns** +- [Error]# + +--- + +### page {#page-error-page} + +Added in: v1.38pageError.page + +The page that produced this unhandled exception, if any. + +**Usage** + +```python +page_error.page +``` + +**Returns** +- [NoneType]|[Page]# + + +[Accessibility]: /api/class-accessibility.mdx "Accessibility" +[APIRequest]: /api/class-apirequest.mdx "APIRequest" +[APIRequestContext]: /api/class-apirequestcontext.mdx "APIRequestContext" +[APIResponse]: /api/class-apiresponse.mdx "APIResponse" +[APIResponseAssertions]: /api/class-apiresponseassertions.mdx "APIResponseAssertions" +[Browser]: /api/class-browser.mdx "Browser" +[BrowserContext]: /api/class-browsercontext.mdx "BrowserContext" +[BrowserType]: /api/class-browsertype.mdx "BrowserType" +[CDPSession]: /api/class-cdpsession.mdx "CDPSession" +[ConsoleMessage]: /api/class-consolemessage.mdx "ConsoleMessage" +[Dialog]: /api/class-dialog.mdx "Dialog" +[Download]: /api/class-download.mdx "Download" +[ElementHandle]: /api/class-elementhandle.mdx "ElementHandle" +[Error]: /api/class-error.mdx "Error" +[FileChooser]: /api/class-filechooser.mdx "FileChooser" +[Frame]: /api/class-frame.mdx "Frame" +[FrameLocator]: /api/class-framelocator.mdx "FrameLocator" +[JSHandle]: /api/class-jshandle.mdx "JSHandle" +[Keyboard]: /api/class-keyboard.mdx "Keyboard" +[Locator]: /api/class-locator.mdx "Locator" +[LocatorAssertions]: /api/class-locatorassertions.mdx "LocatorAssertions" +[Mouse]: /api/class-mouse.mdx "Mouse" +[Page]: /api/class-page.mdx "Page" +[PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" +[Playwright]: /api/class-playwright.mdx "Playwright" +[Request]: /api/class-request.mdx "Request" +[Response]: /api/class-response.mdx "Response" +[Route]: /api/class-route.mdx "Route" +[Selectors]: /api/class-selectors.mdx "Selectors" +[TimeoutError]: /api/class-timeouterror.mdx "TimeoutError" +[Touchscreen]: /api/class-touchscreen.mdx "Touchscreen" +[Tracing]: /api/class-tracing.mdx "Tracing" +[Video]: /api/class-video.mdx "Video" +[WebSocket]: /api/class-websocket.mdx "WebSocket" +[Worker]: /api/class-worker.mdx "Worker" +[Element]: https://developer.mozilla.org/en-US/docs/Web/API/element "Element" +[EvaluationArgument]: /evaluating.mdx#evaluation-argument "EvaluationArgument" +[Promise]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise "Promise" +[iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols "Iterator" +[origin]: https://developer.mozilla.org/en-US/docs/Glossary/Origin "Origin" +[selector]: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors "selector" +[Serializable]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#Description "Serializable" +[UIEvent.detail]: https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail "UIEvent.detail" +[UnixTime]: https://en.wikipedia.org/wiki/Unix_time "Unix Time" +[xpath]: https://developer.mozilla.org/en-US/docs/Web/XPath "xpath" + +[Any]: https://docs.python.org/3/library/typing.html#typing.Any "Any" +[bool]: https://docs.python.org/3/library/stdtypes.html "bool" +[bytes]: https://docs.python.org/3/library/stdtypes.html#bytes "bytes" +[Callable]: https://docs.python.org/3/library/typing.html#typing.Callable "Callable" +[EventContextManager]: https://docs.python.org/3/reference/datamodel.html#context-managers "Event context manager" +[EventEmitter]: https://pyee.readthedocs.io/en/latest/#pyee.BaseEventEmitter "EventEmitter" +[Exception]: https://docs.python.org/3/library/exceptions.html#Exception "Exception" +[Dict]: https://docs.python.org/3/library/typing.html#typing.Dict "Dict" +[float]: https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex "float" +[int]: https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex "int" +[List]: https://docs.python.org/3/library/typing.html#typing.List "List" +[NoneType]: https://docs.python.org/3/library/constants.html#None "None" +[Pattern]: https://docs.python.org/3/library/re.html "Pattern" +[URL]: https://en.wikipedia.org/wiki/URL "URL" +[pathlib.Path]: https://realpython.com/python-pathlib/ "pathlib.Path" +[str]: https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str "str" +[Union]: https://docs.python.org/3/library/typing.html#typing.Union "Union" + +[all available image tags]: https://mcr.microsoft.com/en-us/product/playwright/python/about "all available image tags" +[Microsoft Artifact Registry]: https://mcr.microsoft.com/en-us/product/playwright/python/about "Microsoft Artifact Registry" +[Dockerfile.jammy]: https://github.com/microsoft/playwright-python/blob/main/utils/docker/Dockerfile.jammy "Dockerfile.jammy" diff --git a/python/docs/api/class-playwright.mdx b/python/docs/api/class-playwright.mdx index f466534beec..9875412a999 100644 --- a/python/docs/api/class-playwright.mdx +++ b/python/docs/api/class-playwright.mdx @@ -271,6 +271,7 @@ playwright.webkit [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-request.mdx b/python/docs/api/class-request.mdx index d1ab0298378..437f4aa8ef6 100644 --- a/python/docs/api/class-request.mdx +++ b/python/docs/api/class-request.mdx @@ -492,6 +492,7 @@ request.url [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-response.mdx b/python/docs/api/class-response.mdx index bba2f69ddbb..d9949de460c 100644 --- a/python/docs/api/class-response.mdx +++ b/python/docs/api/class-response.mdx @@ -383,6 +383,7 @@ response.url [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-route.mdx b/python/docs/api/class-route.mdx index 342c0a37442..01a3c8f1309 100644 --- a/python/docs/api/class-route.mdx +++ b/python/docs/api/class-route.mdx @@ -482,6 +482,7 @@ route.request [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-selectors.mdx b/python/docs/api/class-selectors.mdx index 43b8d823c3f..ef508e9a5d3 100644 --- a/python/docs/api/class-selectors.mdx +++ b/python/docs/api/class-selectors.mdx @@ -172,6 +172,7 @@ selectors.set_test_id_attribute(attribute_name) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-timeouterror.mdx b/python/docs/api/class-timeouterror.mdx index 4aa0ea86830..2ba8b565a27 100644 --- a/python/docs/api/class-timeouterror.mdx +++ b/python/docs/api/class-timeouterror.mdx @@ -85,6 +85,7 @@ asyncio.run(main()) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-touchscreen.mdx b/python/docs/api/class-touchscreen.mdx index e60fad63bc7..fbcf63d8543 100644 --- a/python/docs/api/class-touchscreen.mdx +++ b/python/docs/api/class-touchscreen.mdx @@ -59,6 +59,7 @@ touchscreen.tap(x, y) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-tracing.mdx b/python/docs/api/class-tracing.mdx index 80193e9f0f4..65252816c05 100644 --- a/python/docs/api/class-tracing.mdx +++ b/python/docs/api/class-tracing.mdx @@ -238,6 +238,7 @@ tracing.stop_chunk(**kwargs) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-video.mdx b/python/docs/api/class-video.mdx index ff9e0a255ad..539b9dd2ded 100644 --- a/python/docs/api/class-video.mdx +++ b/python/docs/api/class-video.mdx @@ -111,6 +111,7 @@ video.save_as(path) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-websocket.mdx b/python/docs/api/class-websocket.mdx index e7c65d56c4f..2c73b7e570c 100644 --- a/python/docs/api/class-websocket.mdx +++ b/python/docs/api/class-websocket.mdx @@ -205,6 +205,7 @@ web_socket.on("socketerror", handler) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/api/class-worker.mdx b/python/docs/api/class-worker.mdx index 0eec2541762..1d8f99a6c63 100644 --- a/python/docs/api/class-worker.mdx +++ b/python/docs/api/class-worker.mdx @@ -145,6 +145,7 @@ worker.on("close", handler) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/auth.mdx b/python/docs/auth.mdx index b574f6e59c0..520a8215ee1 100644 --- a/python/docs/auth.mdx +++ b/python/docs/auth.mdx @@ -221,6 +221,7 @@ await context.add_init_script("""(storage => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/browser-contexts.mdx b/python/docs/browser-contexts.mdx index 43efd0e469d..274e12c7ea4 100644 --- a/python/docs/browser-contexts.mdx +++ b/python/docs/browser-contexts.mdx @@ -139,6 +139,7 @@ asyncio.run(main()) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/browsers.mdx b/python/docs/browsers.mdx index 438a096a41c..43ef28518d6 100644 --- a/python/docs/browsers.mdx +++ b/python/docs/browsers.mdx @@ -483,6 +483,7 @@ playwright uninstall --all [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/chrome-extensions.mdx b/python/docs/chrome-extensions.mdx index a7593c19eef..f59350b76b9 100644 --- a/python/docs/chrome-extensions.mdx +++ b/python/docs/chrome-extensions.mdx @@ -195,6 +195,7 @@ context = playwright.chromium.launch_persistent_context( [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/ci.mdx b/python/docs/ci.mdx index 8de34f1f5bc..6452cd6ce10 100644 --- a/python/docs/ci.mdx +++ b/python/docs/ci.mdx @@ -325,6 +325,7 @@ xvfb-run python test.py [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/codegen-intro.mdx b/python/docs/codegen-intro.mdx index 8a77144acd5..6c279caac0b 100644 --- a/python/docs/codegen-intro.mdx +++ b/python/docs/codegen-intro.mdx @@ -76,6 +76,7 @@ You can also generate tests using emulation so as to generate a test for a speci [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/codegen.mdx b/python/docs/codegen.mdx index a6f2bd2fed7..d463c4e80ea 100644 --- a/python/docs/codegen.mdx +++ b/python/docs/codegen.mdx @@ -201,6 +201,7 @@ asyncio.run(main()) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/debug.mdx b/python/docs/debug.mdx index ef674f894e5..efa64bec4e9 100644 --- a/python/docs/debug.mdx +++ b/python/docs/debug.mdx @@ -344,6 +344,7 @@ await chromium.launch(headless=False, slow_mo=100) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/dialogs.mdx b/python/docs/dialogs.mdx index 0e525b41749..c4081d40247 100644 --- a/python/docs/dialogs.mdx +++ b/python/docs/dialogs.mdx @@ -143,6 +143,7 @@ await page.close(run_before_unload=True) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/docker.mdx b/python/docs/docker.mdx index 2a4cc4f0587..b3d1909adda 100644 --- a/python/docs/docker.mdx +++ b/python/docs/docker.mdx @@ -121,6 +121,7 @@ Browser builds for Firefox and WebKit are built for the [glibc](https://en.wikip [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/downloads.mdx b/python/docs/downloads.mdx index 2f7be0c4d06..dbb51d75d40 100644 --- a/python/docs/downloads.mdx +++ b/python/docs/downloads.mdx @@ -115,6 +115,7 @@ For uploading files, see the [uploading files](./input.mdx#upload-files) section [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/emulation.mdx b/python/docs/emulation.mdx index 7bc01554c41..beee38f29cb 100644 --- a/python/docs/emulation.mdx +++ b/python/docs/emulation.mdx @@ -512,6 +512,7 @@ context = await browser.new_context( [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/evaluating.mdx b/python/docs/evaluating.mdx index 5c991412bef..41ed814a00f 100644 --- a/python/docs/evaluating.mdx +++ b/python/docs/evaluating.mdx @@ -264,6 +264,7 @@ result = await page.evaluate("""() => { [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/events.mdx b/python/docs/events.mdx index 252b87edd1b..188685dca6c 100644 --- a/python/docs/events.mdx +++ b/python/docs/events.mdx @@ -179,6 +179,7 @@ await page.evaluate("prompt('Enter a number:')") [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/extensibility.mdx b/python/docs/extensibility.mdx index 28bb3894c16..65e5b33d87d 100644 --- a/python/docs/extensibility.mdx +++ b/python/docs/extensibility.mdx @@ -122,6 +122,7 @@ button_count = await page.locator("tag=button").count() [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/frames.mdx b/python/docs/frames.mdx index 6de78fd8bd0..28187f1ea94 100644 --- a/python/docs/frames.mdx +++ b/python/docs/frames.mdx @@ -106,6 +106,7 @@ await frame.fill('#username-input', 'John') [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/handles.mdx b/python/docs/handles.mdx index c03d7458443..a5a09ca64a9 100644 --- a/python/docs/handles.mdx +++ b/python/docs/handles.mdx @@ -266,6 +266,7 @@ await locator.click() [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/input.mdx b/python/docs/input.mdx index bfe581c1dbb..d2b00ecdecb 100644 --- a/python/docs/input.mdx +++ b/python/docs/input.mdx @@ -600,6 +600,7 @@ If your page relies on the `dragover` event being dispatched, you need at least [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/intro.mdx b/python/docs/intro.mdx index 42f94415dc5..3c6be9115fa 100644 --- a/python/docs/intro.mdx +++ b/python/docs/intro.mdx @@ -117,6 +117,7 @@ pytest [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/languages.mdx b/python/docs/languages.mdx index d6b155ef660..47872de238b 100644 --- a/python/docs/languages.mdx +++ b/python/docs/languages.mdx @@ -57,6 +57,7 @@ Playwright for .NET comes with [NUnit base classes](https://playwright.dev/dotne [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/library.mdx b/python/docs/library.mdx index 73e106463ae..33dde5733d4 100644 --- a/python/docs/library.mdx +++ b/python/docs/library.mdx @@ -223,6 +223,7 @@ Playwright's API is not thread-safe. If you are using Playwright in a multi-thre [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/locators.mdx b/python/docs/locators.mdx index 42df50aa64c..170ee471cfb 100644 --- a/python/docs/locators.mdx +++ b/python/docs/locators.mdx @@ -1851,6 +1851,7 @@ For less commonly used locators, look at the [other locators](./other-locators.m [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/mock.mdx b/python/docs/mock.mdx index c779504f249..db06f0ebff9 100644 --- a/python/docs/mock.mdx +++ b/python/docs/mock.mdx @@ -295,6 +295,7 @@ Read more about [advanced networking](./network.mdx). [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/navigations.mdx b/python/docs/navigations.mdx index 5f8a47f8437..a51915c4c38 100644 --- a/python/docs/navigations.mdx +++ b/python/docs/navigations.mdx @@ -163,6 +163,7 @@ Playwright splits the process of showing a new document in a page into **navigat [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/network.mdx b/python/docs/network.mdx index 32d46f4b575..3894a737ad6 100644 --- a/python/docs/network.mdx +++ b/python/docs/network.mdx @@ -506,6 +506,7 @@ Playwright's built-in [browser_context.route()](/api/class-browsercontext.mdx#br [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/other-locators.mdx b/python/docs/other-locators.mdx index bffadf7d336..2e7baaa2943 100644 --- a/python/docs/other-locators.mdx +++ b/python/docs/other-locators.mdx @@ -986,6 +986,7 @@ For example, `css=article >> text=Hello` captures the element with the text `Hel [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/pages.mdx b/python/docs/pages.mdx index 15e3b7c26c4..9b9ec3ba64e 100644 --- a/python/docs/pages.mdx +++ b/python/docs/pages.mdx @@ -278,6 +278,7 @@ page.on("popup", handle_popup) [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/pom.mdx b/python/docs/pom.mdx index d125d6ba66d..2e4a6c1d586 100644 --- a/python/docs/pom.mdx +++ b/python/docs/pom.mdx @@ -123,6 +123,7 @@ await search_page.search("search query") [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/release-notes.mdx b/python/docs/release-notes.mdx index 50a61dba95b..c181183f44c 100644 --- a/python/docs/release-notes.mdx +++ b/python/docs/release-notes.mdx @@ -1257,6 +1257,7 @@ This version of Playwright was also tested against the following stable channels [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/running-tests.mdx b/python/docs/running-tests.mdx index 821ac780029..9d92af39c05 100644 --- a/python/docs/running-tests.mdx +++ b/python/docs/running-tests.mdx @@ -130,6 +130,7 @@ Check out our [debugging guide](./debug.mdx) to learn more about the [Playwright [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/screenshots.mdx b/python/docs/screenshots.mdx index 97da830914e..d1adc9c39d7 100644 --- a/python/docs/screenshots.mdx +++ b/python/docs/screenshots.mdx @@ -150,6 +150,7 @@ await page.locator(".header").screenshot(path="screenshot.png") [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/selenium-grid.mdx b/python/docs/selenium-grid.mdx index 2cdc0b20f3a..3e590aa66bf 100644 --- a/python/docs/selenium-grid.mdx +++ b/python/docs/selenium-grid.mdx @@ -146,6 +146,7 @@ This means that Selenium 3 is supported in a best-effort manner, where Playwrigh [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/test-assertions.mdx b/python/docs/test-assertions.mdx index a55ffd76868..678da9060b1 100644 --- a/python/docs/test-assertions.mdx +++ b/python/docs/test-assertions.mdx @@ -101,6 +101,7 @@ def test_foobar(page: Page) -> None: [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/test-runners.mdx b/python/docs/test-runners.mdx index 867972da241..d0455da8752 100644 --- a/python/docs/test-runners.mdx +++ b/python/docs/test-runners.mdx @@ -292,6 +292,7 @@ See the [guides for CI providers](./ci.mdx) to deploy your tests to CI/CD. [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/trace-viewer-intro.mdx b/python/docs/trace-viewer-intro.mdx index a84646083b5..113fd9a0736 100644 --- a/python/docs/trace-viewer-intro.mdx +++ b/python/docs/trace-viewer-intro.mdx @@ -104,6 +104,7 @@ To learn more check out our detailed guide on [Trace Viewer](/trace-viewer.mdx). [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/trace-viewer.mdx b/python/docs/trace-viewer.mdx index a1e817f77d4..9c245b7b50f 100644 --- a/python/docs/trace-viewer.mdx +++ b/python/docs/trace-viewer.mdx @@ -202,6 +202,7 @@ https://trace.playwright.dev/?trace=https://demo.playwright.dev/reports/todomvc/ [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/videos.mdx b/python/docs/videos.mdx index 9aba0ee2a67..6802044f487 100644 --- a/python/docs/videos.mdx +++ b/python/docs/videos.mdx @@ -127,6 +127,7 @@ Note that the video is only available after the page or browser context is close [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/webview2.mdx b/python/docs/webview2.mdx index 3d07750f1e8..ca7d1e04c77 100644 --- a/python/docs/webview2.mdx +++ b/python/docs/webview2.mdx @@ -192,6 +192,7 @@ For debugging tests, see the Playwright [Debugging guide](./debug). [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/why-playwright.mdx b/python/docs/why-playwright.mdx index a4d7daeb8f6..8ebbcf5cb76 100644 --- a/python/docs/why-playwright.mdx +++ b/python/docs/why-playwright.mdx @@ -56,6 +56,7 @@ Playwright enables fast, reliable and capable testing and automation across all [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/python/docs/writing-tests.mdx b/python/docs/writing-tests.mdx index 28568535ac9..283942fa855 100644 --- a/python/docs/writing-tests.mdx +++ b/python/docs/writing-tests.mdx @@ -122,6 +122,7 @@ def test_main_navigation(page: Page): [Mouse]: /api/class-mouse.mdx "Mouse" [Page]: /api/class-page.mdx "Page" [PageAssertions]: /api/class-pageassertions.mdx "PageAssertions" +[PageError]: /api/class-pageerror.mdx "PageError" [Playwright]: /api/class-playwright.mdx "Playwright" [Request]: /api/class-request.mdx "Request" [Response]: /api/class-response.mdx "Response" diff --git a/src/components/GitHubStarButton/index.tsx b/src/components/GitHubStarButton/index.tsx index 718eca5b1d6..ff3abce664b 100644 --- a/src/components/GitHubStarButton/index.tsx +++ b/src/components/GitHubStarButton/index.tsx @@ -6,7 +6,7 @@ type StarButtonProps = { repo: string } -const STARS = '53k+'; // NOTE: this line is generated by src/generate.js. Do not change! +const STARS = '54k+'; // NOTE: this line is generated by src/generate.js. Do not change! const StarButton: React.FC = ({owner, repo}) => { return (