Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

feat: deprecate "devtools" launch option (#30025)

Dmitry Gozman9d40f619c4b6
diff --git a/docs/src/api/params.md b/docs/src/api/params.md
index b28104814e..e3b2894c3c 100644
--- a/docs/src/api/params.md
+++ b/docs/src/api/params.md
@@ -999,6 +999,7 @@ disable timeout.
If specified, traces are saved into this directory.
## browser-option-devtools
+* deprecated: Use [debugging tools](../debug.md) instead.
- `devtools` <[boolean]>
**Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is `true`, the
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts
index b7be2ff91e..235de894cd 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -13172,6 +13172,7 @@ export interface BrowserType<Unused = {}> {
/**
* **Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is `true`, the
* `headless` option will be set `false`.
+ * @deprecated Use [debugging tools](https://playwright.dev/docs/debug) instead.
*/
devtools?: boolean;
@@ -13576,6 +13577,7 @@ export interface BrowserType<Unused = {}> {
/**
* **Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is `true`, the
* `headless` option will be set `false`.
+ * @deprecated Use [debugging tools](https://playwright.dev/docs/debug) instead.
*/
devtools?: boolean;
@@ -20270,6 +20272,7 @@ export interface LaunchOptions {
/**
* **Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is `true`, the
* `headless` option will be set `false`.
+ * @deprecated Use [debugging tools](https://playwright.dev/docs/debug) instead.
*/
devtools?: boolean;