A little demo showing how to make PyAutoGUI and Selenium WebDriver work together.
Note: tested on a Linux machine only.
- Docker Engine
- Docker Compose
docker-compose buildOn Linux, enable your host's OS user to create connections to the host’s X11 server:
xhost +local:$(whoami)Bring the containers up:
docker-compose up -ddocker exec selenium-chrome ilovemepawsCheck the artifacts folder for screenshots.
Bring containers down:
docker-compose downOS packages (Linux):
python3-xlibpython3-tkpython3-devpip3xvfbxserver-xephyr
Pip packages:
virtualenv
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txtBring the test website up:
cd tests
python3 -m http.serverInside ilovemepaws, replace http://i-love-me-paws:8000 with http://localhost:8000.
Execute script:
./ilovemepawsCheck the artifacts folder for screenshots.