Playwright¶
Playwright for Python¶
- Website
- Cahche, i.e. downloaded browsers: ~/.cache/ms-playwright/
Install system dependencies (works only for Debian-based OS, not for Arch)
Install system dependencies for Manjaro:
Install the required browsers:
Usage¶
Authentication¶
Basic auth¶
Debug mode¶
Run playwright in debug mode:
Docker¶
Codegen UI¶
Copy & paste resulting code to file, and run with:
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