-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathinstall-browsers.sh
More file actions
21 lines (16 loc) · 912 Bytes
/
install-browsers.sh
File metadata and controls
21 lines (16 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Install Playwright browsers for testing
# This downloads the browsers to ~/.cache/ms-playwright/
set -e
echo "Installing Playwright browsers..."
# Download chromium
wget -q --show-progress -O /tmp/chromium.zip "https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1194/chromium-linux.zip"
mkdir -p ~/.cache/ms-playwright/chromium-1194
unzip -q /tmp/chromium.zip -d ~/.cache/ms-playwright/chromium-1194
rm /tmp/chromium.zip
# Download chromium headless shell
wget -q --show-progress -O /tmp/chromium-headless-shell.zip "https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1194/chromium-headless-shell-linux.zip"
mkdir -p ~/.cache/ms-playwright/chromium_headless_shell-1194
unzip -q /tmp/chromium-headless-shell.zip -d ~/.cache/ms-playwright/chromium_headless_shell-1194
rm /tmp/chromium-headless-shell.zip
echo "Playwright browsers installed successfully!"