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
fix(launch): replace 'npm install playwright' with 'npx playwright install' (#7410)
Dmitry Gozman63e6e530ca8a
diff --git a/src/server/browserType.ts b/src/server/browserType.tsindex 4579b196d9..cf48507e39 100644--- a/src/server/browserType.ts+++ b/src/server/browserType.ts@@ -166,7 +166,7 @@ export abstract class BrowserType extends SdkObject {const errorMessageLines = [`Failed to launch ${this._name} because executable doesn't exist at ${executable}`];// If we tried using stock downloaded browser, suggest re-installing playwright.if (!executablePath)- errorMessageLines.push(`Try re-installing playwright with "npm install playwright"`);+ errorMessageLines.push(`Run "npx playwright install" to install browsers`);throw new Error(errorMessageLines.join('\n'));}