Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: be more clear about connect/launchServer version match (#16134)
Max Schmittb34da61524ef
diff --git a/docs/src/api/class-browsertype.md b/docs/src/api/class-browsertype.mdindex 486390830d..5be5ef5cc2 100644--- a/docs/src/api/class-browsertype.md+++ b/docs/src/api/class-browsertype.md@@ -89,7 +89,7 @@ class BrowserTypeExamples* since: v1.8- returns: <[Browser]>-This method attaches Playwright to an existing browser instance.+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).### param: BrowserType.connect.wsEndpoint* since: v1.10@@ -283,7 +283,7 @@ use a temporary directory instead.* langs: js- returns: <[BrowserServer]>-Returns the browser app instance.+Returns the browser app instance. You can connect to it via [`method: BrowserType.connect`], which requires the major/minor client/server version to match (1.2.3 → is compatible with 1.2.x).Launches browser server that client can connect to. An example of launching a browser executable and connecting to itlater:diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.tsindex d66f9e823b..7623c5d821 100644--- a/packages/playwright-core/types/types.d.ts+++ b/packages/playwright-core/types/types.d.ts@@ -10379,7 +10379,9 @@ export interface BrowserType<Unused = {}> {*/connectOverCDP(options: ConnectOverCDPOptions & { wsEndpoint?: string }): Promise<Browser>;/**- * This method attaches Playwright to an existing browser instance.+ * 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).* @param wsEndpoint A browser websocket endpoint to connect to.* @param options*/@@ -10391,7 +10393,9 @@ export interface BrowserType<Unused = {}> {* @deprecated*//**- * This method attaches Playwright to an existing browser instance.+ * 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).* @param wsEndpoint A browser websocket endpoint to connect to.* @param options*/@@ -10835,7 +10839,9 @@ export interface BrowserType<Unused = {}> {}): Promise<BrowserContext>;/**- * Returns the browser app instance.+ * Returns the browser app instance. You can connect to it via+ * [browserType.connect(wsEndpoint[, options])](https://playwright.dev/docs/api/class-browsertype#browser-type-connect),+ * which requires the major/minor client/server version to match (1.2.3 → is compatible with 1.2.x).** Launches browser server that client can connect to. An example of launching a browser executable and connecting to it* later: