ref. https://github.com/SeleniumHQ/docker-selenium#via-docker-compose
require python & pipenv ref. bit.ly/nnpipenv
pipenv sync
PYTHONPATH=`pwd` pipenv run pytest ./tests/test_demo_googlesearch.py::Test::test_Chrome
PYTHONPATH=`pwd` pipenv run pytest ./tests/test_demo_googlesearch.py::Test::test_Firefox
PYTHONPATH=`pwd` pipenv run pytest ./tests/test_demo_googlesearch.py::Test # 2 passed in 18.18s
PYTHONPATH=`pwd` pipenv run pytest ./tests/test_demo_googlesearch.py::Test -n2 # 2 passed in 12.67s
# . . . run :ch and :ff in parallel
avoid starting Xvfb server -e START_XVFB=false https://github.com/SeleniumHQ/docker-selenium#running-in-headless-mode
/wd/hub/status endpoint https://github.com/SeleniumHQ/docker-selenium#waiting-for-the-grid-to-be-ready
check-grid.sh script https://github.com/SeleniumHQ/docker-selenium#adding-a-healthcheck-to-the-grid