Skip to content

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

chore(CLI): let other langs specify exec name (#6719)

Anže Vodovnik01d8f8792390
diff --git a/src/cli/cli.ts b/src/cli/cli.ts
index d3bde5a029..08726450ad 100755
--- a/src/cli/cli.ts
+++ b/src/cli/cli.ts
@@ -38,7 +38,7 @@ import { allBrowserNames } from '../utils/registry';
program
.version('Version ' + require('../../package.json').version)
- .name('npx playwright');
+ .name(process.env.PW_CLI_NAME || 'npx playwright');
commandWithOpenOptions('open [url]', 'open page in browser specified via -b, --browser', [])
.action(function(url, command) {