Public Repository

Last pushed: 4 months ago
Short Description
A base image for running python tests against selenium
Full Description

This image contains the necessary requirements to run python selenium tests within firefox and chrome. Pulling the latest stable version of Chrome and the latest ESR build of Firefox. It uses pyvirtualdisplay to emulate a display that can be configured at will.

To start up the display (a requirement for selenium to function correctly), you must import the display object and initialize it with the following lines.

from pyvirtualdisplay import Display
display = Display(visible=0, size=(1080,1920)) #or whatever screen resolution you want

Putting this code in the setup methods of whatever test harness you're using is preferable to running it with every test.

Use it as a base docker image and then add python selenium test code as part of your Dockerfile.

Docker Pull Command