Selenium tests to test all site functionality.
Create a new Python 3 virtual environment so we can install dependencies, and activate it:
python3 -m env venv
. venv/bin/activate
Then install the requirements:
pip install -r requirements.txt
Then install a browser driver:
https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers/
and add the driver file to the venv/bin
directory.
I've used the geckodriver
for Firefox in the python scripts.
https://github.com/SergeyPirogov/webdriver_manager contains instructions for how to use different drivers in your code.
Ensure your venv is activated
. venv/bin/activate
Either run the tests individually, ie:
python get-firefox.py
Or run all of the tests:
for f in *.py; do python "$f"; done
To pause execution after each action, enable debug mode. To continue execution, hit Enter
in the terminal
python get-firefox.py -d
or
python get-firefox.py --debug