From e3d615e9f2f7f9198a0073ad53f22ec197ab4f7b Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 9 Jan 2023 18:39:54 +0100 Subject: [PATCH] docs: add Electron troubleshooting note (#19954) Fixes https://github.com/microsoft/playwright/issues/19854 Signed-off-by: Max Schmitt Co-authored-by: Pavel Feldman --- docs/src/api/class-electron.md | 6 ++++++ packages/playwright-core/types/types.d.ts | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/docs/src/api/class-electron.md b/docs/src/api/class-electron.md index 8188504733..cf1fa06fd6 100644 --- a/docs/src/api/class-electron.md +++ b/docs/src/api/class-electron.md @@ -51,6 +51,12 @@ PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm i -D playwright * v13.4.0+ * v14+ +**Known issues:** + +If you are not able to launch Electron and it will end up in timeouts during launch, try the following: + +* Ensure that `nodeCliInspect` ([FuseV1Options.EnableNodeCliInspectArguments](https://www.electronjs.org/docs/latest/tutorial/fuses#nodecliinspect)) fuse is **not** set to `false`. + ## async method: Electron.launch * since: v1.9 - returns: <[ElectronApplication]> diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index 166cf47d76..9435376b00 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -15778,6 +15778,13 @@ export interface Download { * - v12.2.0+ * - v13.4.0+ * - v14+ + * + * **Known issues:** + * + * If you are not able to launch Electron and it will end up in timeouts during launch, try the following: + * - Ensure that `nodeCliInspect` + * ([FuseV1Options.EnableNodeCliInspectArguments](https://www.electronjs.org/docs/latest/tutorial/fuses#nodecliinspect)) + * fuse is **not** set to `false`. */ export interface Electron { /**