Setting up Selenium Grid

前端 未结 4 1513
被撕碎了的回忆
被撕碎了的回忆 2021-01-14 15:26

I am setting up Selenium Grid server and I have done successfully on my local machine and I\'m wondering how to give the hostname so if other tester wants to register to the

4条回答
  •  粉色の甜心
    2021-01-14 16:31

    You can start the selenium grid as follows

    java -jar selenium-server-standalone-2.21.0.jar -role hub
    

    You can start the selenium node as follows

    java -jar selenium-server-standalone-2.21.0.jar -role node -hubHost <> -hubPort 4444
    

    Instead of the string <>, give the hostname or ip of the machine where hub is running. If both the node & hub are in same machine, you need to use localhost or 127.0.0.1

提交回复
热议问题