This project shows how to use Selenium Grid with different browsers. It contains minimal working configuration that probably should be improved for production use.
From version 3.x Selenium uses geckodriver for interactions with Firefox browser and this driver supports Firefox version 55 and greater (see Gecko Supported Firefoxen).
But it is possible to use older Firefox without marionette.
Set "marionette"
capability of required web driver to false
(see SeleniumGridTest class).
-
Download selenium standalone jar
-
Start Selenium Grid hub:
java -jar selenium-server-standalone-3.12.0.jar -role hub
-
Start Selenium Grid node
-
with old Firefox:
java -Dwebdriver.firefox.bin="D:/soft/Firefox38.6/firefox.exe" -jar selenium-server-standalone-3.12.0.jar -role node -hub "http://localhost:4444/grid/register/" -browser "browserName=firefox,version=38,marionette=false"
-
with new Firefox:
java -Dwebdriver.gecko.driver="D:/Selenium/geckodriver.exe" -jar selenium-server-standalone-3.12.0.jar -role node -hub "http://localhost:4444/grid/register" -browser "browserName=firefox,version=60"
-
with new Chrome:
java -Dwebdriver.chrome.driver="D:/Selenium/chromedriver.exe" -jar selenium-server-standalone-3.12.0.jar -role node -hub "http://localhost:4444/grid/register" -browser "browserName=chrome,version=ANY"
-
-
Download Browsermob
-
Unzip the package and
cd browsermob-proxy-2.1.4/bin
-
Start it with default configuration (port 8080):
./browsermob-proxy