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: warn about connecting over cdp to non-playwright-launched browsers (#41296)
Dmitry Gozman6724b714f047
diff --git a/docs/src/api/class-browsertype.md b/docs/src/api/class-browsertype.mdindex 9f94ff4beb..1dad175eec 100644--- a/docs/src/api/class-browsertype.md+++ b/docs/src/api/class-browsertype.md@@ -153,6 +153,10 @@ Connecting over the Chrome DevTools Protocol is only supported for Chromium-baseThis 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`].:::+:::warning+Playwright maintains a curated list of arguments for launching the browser. If you launch the browser without Playwright and do not pass the exact same arguments, some of Playwright functionality may be broken upon connecting to the browser.+:::+**Usage**```jsdiff --git a/packages/playwright-client/types/types.d.ts b/packages/playwright-client/types/types.d.tsindex 67f1246e56..bfdaf7a204 100644--- a/packages/playwright-client/types/types.d.ts+++ b/packages/playwright-client/types/types.d.ts@@ -15415,6 +15415,10 @@ export interface BrowserType<Unused = {}> {* If you are experiencing issues or attempting to use advanced functionality, you probably want to use* [browserType.connect(endpoint[, options])](https://playwright.dev/docs/api/class-browsertype#browser-type-connect).*+ * **NOTE** Playwright maintains a curated list of arguments for launching the browser. If you launch the browser+ * without Playwright and do not pass the exact same arguments, some of Playwright functionality may be broken upon+ * connecting to the browser.+ ** **Usage**** ```js@@ -15441,6 +15445,10 @@ export interface BrowserType<Unused = {}> {* If you are experiencing issues or attempting to use advanced functionality, you probably want to use* [browserType.connect(endpoint[, options])](https://playwright.dev/docs/api/class-browsertype#browser-type-connect).*+ * **NOTE** Playwright maintains a curated list of arguments for launching the browser. If you launch the browser+ * without Playwright and do not pass the exact same arguments, some of Playwright functionality may be broken upon+ * connecting to the browser.+ ** **Usage**** ```js@@ -15471,6 +15479,10 @@ export interface BrowserType<Unused = {}> {* If you are experiencing issues or attempting to use advanced functionality, you probably want to use* [browserType.connect(endpoint[, options])](https://playwright.dev/docs/api/class-browsertype#browser-type-connect).*+ * **NOTE** Playwright maintains a curated list of arguments for launching the browser. If you launch the browser+ * without Playwright and do not pass the exact same arguments, some of Playwright functionality may be broken upon+ * connecting to the browser.+ ** **Usage**** ```jsdiff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.tsindex 67f1246e56..bfdaf7a204 100644--- a/packages/playwright-core/types/types.d.ts+++ b/packages/playwright-core/types/types.d.ts@@ -15415,6 +15415,10 @@ export interface BrowserType<Unused = {}> {* If you are experiencing issues or attempting to use advanced functionality, you probably want to use* [browserType.connect(endpoint[, options])](https://playwright.dev/docs/api/class-browsertype#browser-type-connect).*+ * **NOTE** Playwright maintains a curated list of arguments for launching the browser. If you launch the browser+ * without Playwright and do not pass the exact same arguments, some of Playwright functionality may be broken upon+ * connecting to the browser.+ ** **Usage**** ```js@@ -15441,6 +15445,10 @@ export interface BrowserType<Unused = {}> {* If you are experiencing issues or attempting to use advanced functionality, you probably want to use* [browserType.connect(endpoint[, options])](https://playwright.dev/docs/api/class-browsertype#browser-type-connect).*+ * **NOTE** Playwright maintains a curated list of arguments for launching the browser. If you launch the browser+ * without Playwright and do not pass the exact same arguments, some of Playwright functionality may be broken upon+ * connecting to the browser.+ ** **Usage**** ```js@@ -15471,6 +15479,10 @@ export interface BrowserType<Unused = {}> {* If you are experiencing issues or attempting to use advanced functionality, you probably want to use* [browserType.connect(endpoint[, options])](https://playwright.dev/docs/api/class-browsertype#browser-type-connect).*+ * **NOTE** Playwright maintains a curated list of arguments for launching the browser. If you launch the browser+ * without Playwright and do not pass the exact same arguments, some of Playwright functionality may be broken upon+ * connecting to the browser.+ ** **Usage**** ```js