Skip to content
Find file
3acb4b4 Sep 5, 2013
57 lines (43 sloc) 1.91 KB


To use selenium-grid, you need a selenium hub and at least one node (both can be on the same machine).

Download standalone selenium server from selenium downloads page on both node(s) and hub machines.

Node machine might require extra drivers, IE driver is available on selenium website, and chrome driver is available on chromium download page

Running hub

java -jar selenium-server-standalone-2.33.0.jar -role hub \
    -timeout 30 -browserTimeout 60

Running node

This script runs on a windows machine. You can download virtual machines on the website.

TITLE selenium node
java -jar Selenium\selenium-server-standalone-2.33.0.jar ^
    -role node ^
    -hub ^"%CD%\Selenium\IEDriverServer.exe" ^"%CD%\Selenium\chromedriver.exe" ^
    -browser "browserName=internet explorer,version=8,platform=XP,maxInstances=5" ^
    -browser "browserName=chrome,version=latest,platform=XP,maxInstances=5" ^
    -browser "browserName=firefox,version=latest,platform=XP,maxInstances=5"

To run a mac/linux node, use following:

#/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

java -jar "${DIR}/selenium-server-standalone-2.35.0.jar" \
    -role node \
    -hub http://cl-ssabatier:4444/grid/register \"${DIR}/chromedriver" \
    -browser "browserName=safari,version=latest,platform=${PLATFORM},maxInstances=5" \
    -browser "browserName=chrome,version=latest,platform=${PLATFORM},maxInstances=5" \
    -browser "browserName=firefox,version=latest,platform=${PLATFORM},maxInstances=5"

List of supported platforms and browsers:

Something went wrong with that request. Please try again.