Playwright
Playwright for Python
pamac install python-playwright
Install system dependencies (works only for Debian-based OS, not for Arch)
playwright install-deps
Install system dependencies for Manjaro:
pamac install icu66 libwebp052 libffi7
sudo pacman -S flite
Install the required browsers:
playwright install firefox
Usage
Debug mode
Run playwright in debug mode:
export PWDEBUG=1
Docker
Codegen UI
playwright codegen -b firefox ix.de
Copy & paste resulting code to file, and run with:
python ix.de.playwright.py
Docker images
- Official Playwright for Python images are ~2Gb big
-
Question: How to reduce size of Docker image for Playwright (focal) Alpine 3.19 (-3.15):
$ pip install playwright ERROR: Could not find a version that satisfies the requirement playwright ERROR: No matching distribution found for playwright