Tuesday, February 26, 2019

How set up selenium grid with port step by step process

Selenium grid setup is process, we will divide this into 3 tasks, these are


1) Setup Hub
2) Setup  Nodes
3) Develop the scripts and execute.

1) Setup Hub

Download the latest Selenium Server file from http://docs.seleniumhq.org/download/
Selenium Grid – How to Easily Setup a Hub and Node

You can place the Selenium Server jar file anywhere in your hard drive, but now am placing into c drive.


2)  Go to cmd prompt 

3) Navigate where we placed selenium server . 

4) Enter ur selenium server as below. (version may be change )

java -jar selenium-server-standalone-2.53.0.jar -role hub  -port 6000


by default it will take port number as 4444 if you want you can change 

Selenium Grid_7

To verify whether hub is running, open the browser and navigate to http://localhost:6000/grid/console


Selenium Grid_7


2) Setup  Nodes 

1)  Go to cmd prompt .

2) Enter 

java -jar selenium-server-standalone-2.53.0.jar -role node -hub http://localhost:6000/grid/register -maxSession 5 



Selenium Grid_7

Go to the browser and verify 


Selenium Grid_7

No comments:

Post a Comment