Skip to content
Presentation of my talk on using Geb to test against a Selenium Grid
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Presentation of my talk on using Geb to test against a Selenium Grid

Selenium Grid Setup

  1. Ensure docker and docker-compose gets installed for your OS.
  • If using Windows,
    • I recommend installing Docker Toolbox instead of Docker for Windows. Both Docker and Docker Compose will be installed with Docker Toolbox.
    • However, these instructions should work using Docker for Windows (not tested).
  • If using Linux, both Docker and Docker Compose will need to be installed.
  1. Ensure at least 4GB of memory is available.
  • If using Docker Toolbox, open VirtualBox to configure at least 4GB of memory to the default VM.
  • If using Linux, ensure your system has sufficient RAM installed.
  1. Build the base image
  • cd selenium_grid
  • docker build -t selenium_grid/base:2.53.1 base/.
  1. Build and start the hub and one firefox node
  • docker-compose up -d hub firefox
  1. Scale to specified number of firefox nodes
  • docker-compose scale firefox=6
  1. View your running containers
  • docker ps

Access to Selenium Grid Hub Console

  1. Determine the IP address of your docker
  • If using Docker Toolbox
    • docker-machine ip
  • If using Linux
    • ifconfig
    • or ip address show
  1. Using a browser
  • navigate to http://<ipAddress>:4433/grid/console

Selenium Grid Shutdown

  1. Stop and remove the selenium grid containers.
  • cd selenium_grid
  • docker-compose down
  1. Verify your containers are removed
  • docker ps -a

Debug a container

  • Start a bash shell in a running container
    • docker -it <container_id> bash
  • You can run any command that is installed in this container.
  • To exit the container's bash shell
    • exit
You can’t perform that action at this time.