Debugging Docker Selenium Grid tests with VNC

I'll take you through the steps to get Selenium Grid - Firefox debug hub Docker image up and running on Windows and to VNC to debug it.

  1. Lets get Selenium grid up and running by updating our docker-compose file
    1. $ cd compose
    2. $ nano docker-compose.yml
    3. copy and paste
    4. hub: image: selenium/hub ports: - "4444:4444"ffdebug: image: selenium/node-firefox-debug ports: - 5900 links: - hub
    5. Save
    6. Run: $docker rm -f $(docker ps -a -q) //this removes previous containers
    7. Run: $ docker-compose up
    8. Wait for the image to download and wait about 10 seconds.  
    9. Run docker ps //we will look for the VNC port 
    10. The highlighted number is your VNC port number.

  • Start and connect the VNC Viewer with your host and port.  Password is: secret


  1. You will see an VNC terminal

  1. Run the testNG test again.  Make sure that (line 26) code is: DesiredCapabilities.firefox()

  1. You will now see the browser interaction and can develop as you would on your desktop.
    1. That's all there is to it!