Created
September 6, 2023 08:14
-
-
Save N0xFF/c1732e8541ba6d1c7b02d365b2f49b74 to your computer and use it in GitHub Desktop.
Install/Update Chrome for Testing and Chromedriver in Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Use @puppeteer/browsers to system-wide install the latest stable release of Chrome and Chromedriver. | |
# By default to home directory. | |
cd ~ | |
mkdir -p bin | |
output=($(npx @puppeteer/browsers install chrome@stable)) &&\ | |
ln -sfv ${output[1]} ~/bin/chrome &&\ | |
output=($(npx @puppeteer/browsers install chromedriver@stable)) &&\ | |
ln -sfv ${output[1]} ~/bin/chromedriver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment