Sample project that shows how to use a Selenium Hub/Selenium nodes running in Docker from your tests
-
Forward ports from your docker-vm
- 5900 for VNC
- 4444 for Selenium Hub
-
Start the Selenium hub and node-firefox-debug
$ docker-compose up --force-recreate
--force-recreate as a work around for SeleniumHQ/docker-selenium#91
OR:
-
Start the hub and nodes you want separately
$ docker run --rm -p 4444:4444 --name selenium-hub selenium/hub $ docker run --rm -P -p 5900:5900 --link selenium-hub:hub selenium/node-firefox-debug
Visit https://github.com/SeleniumHQ/docker-selenium for more node containers
Connect using a VNC viewer to node-firefox-debug with port 5900, password: secret (no username)