/python-selenium-chromium-docker-test

A docker image (333MB) that runs a selenium test in a headless chromium instance.

Primary LanguagePython

Python + Selenium example using chromium in an Alpine Docker image

A docker image (333MB) that runs a selenium test in a headless chromium instance.

Build a docker image

docker build -t $USER/selenium:latest .

Run the example

docker run $USER/selenium

To fiddle with test.py

# Create a new virtualenv
python3 -m venv .venv

# Use the newly created virtualenv
source .venv/bin/activate
# OR use direnv
direnv allow

# Install requirements
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt