-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(roll): roll to ToT Playwright (18-08-23)
- Loading branch information
1 parent
9a24daf
commit 9145b01
Showing
373 changed files
with
1,316 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} | ||
|
||
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.38</font><x-search>pageError.Error</x-search> | ||
|
||
Unhandled error that was thrown. | ||
|
||
**Usage** | ||
|
||
```csharp | ||
PageError.Error | ||
``` | ||
|
||
**Returns** | ||
- [Error]<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="page-error-error-return"/><a href="#page-error-error-return" class="list-anchor">#</a> | ||
|
||
--- | ||
|
||
### Page {#page-error-page} | ||
|
||
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.38</font><x-search>pageError.Page</x-search> | ||
|
||
The page that produced this unhandled exception, if any. | ||
|
||
**Usage** | ||
|
||
```csharp | ||
PageError.Page | ||
``` | ||
|
||
**Returns** | ||
- [Page]?<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="page-error-page-return"/><a href="#page-error-page-return" class="list-anchor">#</a> | ||
|
||
|
||
[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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.