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
chore: update npx playwright uninstall docs (#23552)
Max Schmitt85be65b07ba4
diff --git a/docs/src/browsers.md b/docs/src/browsers.mdindex 86f54c1f4e..b17c5d3987 100644--- a/docs/src/browsers.md+++ b/docs/src/browsers.md@@ -992,7 +992,7 @@ Playwright keeps track of the clients that use its browsers. When there are no mTo opt-out from the unused browser removal, you can set the `PLAYWRIGHT_SKIP_BROWSER_GC=1` environment variable.-### Remove browsers+### Uninstall browsersThis will remove the browsers (chromium, firefox, webkit) of the current Playwright installation:diff --git a/packages/playwright-core/src/cli/program.ts b/packages/playwright-core/src/cli/program.tsindex f0ea6c3a64..bc9afcb322 100644--- a/packages/playwright-core/src/cli/program.ts+++ b/packages/playwright-core/src/cli/program.ts@@ -175,13 +175,13 @@ Examples:program.command('uninstall')- .description('Removes browsers used by this version of Playwright from the system (chromium, firefox, webkit, ffmpeg). This does not include branded channels.')- .option('--all', 'Removes all browsers used by any Playwright version from the system.')+ .description('Removes browsers used by this installation of Playwright from the system (chromium, firefox, webkit, ffmpeg). This does not include branded channels.')+ .option('--all', 'Removes all browsers used by any Playwright installation from the system.').action(async (options: { all?: boolean }) => {await registry.uninstall(!!options.all).then(({ numberOfBrowsersLeft }) => {if (!options.all && numberOfBrowsersLeft > 0) {console.log('Successfully uninstalled Playwright browsers for the current Playwright installation.');- console.log(`There are still ${numberOfBrowsersLeft} browsers left, used by other Playwright installations.\nTo uninstall Playwright browsers for all versions, re-run with --all flag.`);+ console.log(`There are still ${numberOfBrowsersLeft} browsers left, used by other Playwright installations.\nTo uninstall Playwright browsers for all installations, re-run with --all flag.`);}}).catch(logErrorAndExit);});