How to Set up and launching Selenium Grid?

Download selenium latest jar file from Webdriver

Launching Hub:

Open command prompt and 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
screen should be displayed like below.

Launching Nodes: 

Open two command prompt and go to your selenium server jar file and run below 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,version=13

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

Screen should be displayed like below:

Note: if you want to run Node on different machine then replace “localhost” to your system IP address where Hub is running.

Open Url :localhost:4444/console” you will see like below screen.

No comments:

Post a Comment

Leave your comments, queries, suggestion I will try to provide solution