From 6b774922f9b9f73877aaee4b255714534515f3f5 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 26 Jul 2021 08:53:49 -0700 Subject: [PATCH] docs: remove hermetic installation guide for non-js (#7845) --- docs/src/installation.md | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/docs/src/installation.md b/docs/src/installation.md index 5487e16bb2..69c62900dc 100644 --- a/docs/src/installation.md +++ b/docs/src/installation.md @@ -15,10 +15,6 @@ Each version of Playwright needs specific versions of browser binaries to operat - `~/Library/Caches/ms-playwright` on MacOS - `~/.cache/ms-playwright` on Linux -```bash js -npm i -D playwright -``` - ```bash python pip install playwright playwright install @@ -54,6 +50,14 @@ playwright install ```bash java # Linux/macOS PLAYWRIGHT_BROWSERS_PATH=$HOME/pw-browsers mvn test + +# Windows with cmd.exe +set PLAYWRIGHT_BROWSERS_PATH=%USERPROFILE%\pw-browsers +mvn test + +# Windows with PowerShell +$env:PLAYWRIGHT_BROWSERS_PATH="$env:USERPROFILE\pw-browsers" +mvn test ``` When running Playwright scripts, ask it to search for browsers in a shared location. @@ -81,24 +85,6 @@ $env:PLAYWRIGHT_BROWSERS_PATH="$env:USERPROFILE\pw-browsers" mvn test ``` -Or you can opt into the hermetic install and place binaries in the local folder: - -```bash python -# Linux/macOS -pip install playwright -PLAYWRIGHT_BROWSERS_PATH=0 playwright install - -# Windows with cmd.exe -set PLAYWRIGHT_BROWSERS_PATH=0 -pip install playwright -playwright install - -# Windows with PowerShell -$env:PLAYWRIGHT_BROWSERS_PATH=0 -pip install playwright -playwright install -``` - Playwright keeps track of packages that need those browsers and will garbage collect them as you update Playwright to the newer versions. :::note