Skip to content

Playwright

Playwright for Python

Website

Install:

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

Test generator

playwright codegen -b firefox ix.de

Copy & paste resulting code to file, and run with:

python ix.de.playwright.py

Docker images