Skip to content

How to use legacy firefox web driver with new Selenium grid and how to record traffic with external browsermob proxy.

Notifications You must be signed in to change notification settings

wiiitek/seleniumgrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seleniumgrid

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.

Sample Setup

Web Driver usage in JAVA code

Set "marionette" capability of required web driver to false (see SeleniumGridTest class).

Selenium Grid setup

  1. Download selenium standalone jar

  2. Start Selenium Grid hub:

     java -jar selenium-server-standalone-3.12.0.jar -role hub
    
  3. Start Selenium Grid node

    1. 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"
      
    2. 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"
      
    3. 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" 
      

Browsermob setup

  1. Download Browsermob

  2. Unzip the package and cd browsermob-proxy-2.1.4/bin

  3. Start it with default configuration (port 8080):

     ./browsermob-proxy
    

About

How to use legacy firefox web driver with new Selenium grid and how to record traffic with external browsermob proxy.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages