You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Playwright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.
Copy file name to clipboardexpand all lines: docs/src/api/class-browsertype.md
+10-2
Original file line number
Diff line number
Diff line change
@@ -89,13 +89,17 @@ class BrowserTypeExamples
89
89
* since: v1.8
90
90
- returns: <[Browser]>
91
91
92
-
This method attaches Playwright to an existing browser instance. When connecting to another browser launched via `BrowserType.launchServer` in Node.js, the major and minor version needs to match the client version (1.2.3 → is compatible with 1.2.x).
92
+
This method attaches Playwright to an existing browser instance created via `BrowserType.launchServer` in Node.js.
93
+
94
+
:::note
95
+
The major and minor version of the Playwright instance that connects needs to match the version of Playwright that launches the browser (1.2.3 → is compatible with 1.2.x).
96
+
:::
93
97
94
98
### param: BrowserType.connect.wsEndpoint
95
99
* since: v1.10
96
100
-`wsEndpoint` <[string]>
97
101
98
-
A browser websocket endpoint to connect to.
102
+
A Playwright browser websocket endpoint to connect to. You obtain this endpoint via `BrowserServer.wsEndpoint`.
99
103
100
104
### option: BrowserType.connect.headers
101
105
* since: v1.11
@@ -152,6 +156,10 @@ The default browser context is accessible via [`method: Browser.contexts`].
152
156
Connecting over the Chrome DevTools Protocol is only supported for Chromium-based browsers.
153
157
:::
154
158
159
+
:::note
160
+
This connection is significantly lower fidelity than the Playwright protocol connection via [`method: BrowserType.connect`]. If you are experiencing issues or attempting to use advanced functionality, you probably want to use [`method: BrowserType.connect`].
Asserts that the target element matches the given [accessibility snapshot](../aria-snapshots.md).
2247
2265
2266
+
Snapshot is stored in a separate `.yml` file in a location configured by `expect.toMatchAriaSnapshot.pathTemplate` and/or `snapshotPathTemplate` properties in the configuration file.
Copy file name to clipboardexpand all lines: docs/src/api/class-websocket.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
1
# class: WebSocket
2
2
* since: v1.8
3
3
4
-
The [WebSocket] class represents websocket connections in the page.
4
+
The [WebSocket] class represents WebSocket connections within a page. It provides the ability to inspect and manipulate the data being transmitted and received.
5
+
6
+
If you want to intercept or modify WebSocket frames, consider using [WebSocketRoute].
0 commit comments