WebDriver Grid setup

  • Step: 1 : Launch Grid on Grid server.
  • Launching Hub:

    Open command prompt got to your selenium server jar file and run command: >
    java -jar selenium-server-standalone-2.21.0.jar -host localhost -port 4444 -role hub

  • Step: 2 : Register your node to Grid for firefox browser on WINDOWS platform
  • Launching Node 1:
    open command prompt go to you selenium server jar file and execute command: >
    java -jar selenium-server-standalone-2.21.0.jar -host localhost -port 5555 -role webdriver -hub http://localhost:4444/grid/register -browser browserName=firefox,platform=WINDOWS

  • Step: 3 : Register your another node to Grid for firefox browser on WINDOWS platform
  • Launching Node 2:
    open another command prompt go to you selenium server jar file and execute command: >

    java -jar selenium-server-standalone-2.21.0.jar -host localhost -port 5556 -role webdriver -hub http://:4444/grid/register -browser browserName=iehtafirefox,platform=WINDOWS 

    Comments

    Popular posts from this blog

    Selenium: File download handling.

    Major Differences between Python and Java

    Cypress V/S Selenium