Selenium official documentation dont specify that it's mandatory to have a window manager in node container to use webDriver.manage().window().maximize();
.
I've found that debug node images are embeding fluxbox window manager unlike standard node images.
docker-compose -f docker-compose.yml up -d
# Pre-Step
# Selenium grid initialisation
docker run --rm -d --net ci --name qa-hub -e GRID_TIMEOUT=10 selenium/hub
docker run --rm -d --net ci --name qa-ch -e HUB_HOST=qa-hub -v /dev/shm:/dev/shm selenium/node-chrome-debug
docker run --rm -d --net ci --name qa-ff -e HUB_HOST=qa-hub -v /dev/shm:/dev/shm selenium/node-firefox-debug
# Post-Step
# Clean containers
docker stop $(docker container ls -f 'name=qa-' -q)
Keep in mind that ci
network is the one Jenkins slave is attached to. If Jenkins slave is attached to default network replace ci
by default