Now Reading
How to setup Local Selenium Grid

How to setup Local Selenium Grid

Install the local version of Selenium Grid

  • Create a new folder on your PC Called C:Selenium
  • Download this ZIP file and unzip the contents to C:Selenium
  • Make the following changes to Environment Variables (System type):
    • Modify the Path variable and add C:Selenium to the existing Path string
    • Create new variable called as follows:

Launch the local Selenium Hub

  • Open a new command prompt window and navigate to c:Selenium (you can also do this from Windows Explorer too)
  • Run the batch file runhub.bat

      This will launch TWO new Command Prompt windows – one that is running a Selenium Grid Hub and the other running a node
  • Open a browser and navigate to URL http://localhost/grid/console.  If the Grid is running correctly you should see the following:
  • Note that the grid is configured for all four browser types (two instances of each;  it doesn’t check whether these browsers actually exist on your system, so if you want to use any of these browsers, you must make sure they are installed on your system.  They can be any version you like.

Modify Selenium/Fitnesse Framework tests to use the local Selenium Grid:

To use the local grid is easy – instead of pointing to a Hub on, you need to point to the hub running on your own computer.  You can do that by referring your computer name in the format http://mycomputer:444/wd/hub

Then just click on the Test button and the tests should run on your own PC


Note:  I did find an issue with running IE on the local grid (which doesn’t occur on the server version).    Selenium complained that the protected settings for each zone were not the same.  The fix is easy  – just go to Internet Explorer Options and change the Security settings and make sure Enable Protected mode is unchecked for each ZONE (Internet, Local Intratnet, Trusted Sites and Restricted Sites)

View Comments (2)

Leave a Reply

Your email address will not be published.

Scroll To Top