1. 程式人生 > >python selenium grid模式

python selenium grid模式

1.下載Selenium Standalone Server
下載地址:https://www.seleniumhq.org/download/

2.啟動hub

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


節點註冊地址: http://192.168.63.143:4444/grid/register/
hub管理地址: http://192.168.63.143:4444/grid/console

3.註冊節點

#本機註冊節點
java -jar selenium-server-standalone-3.141.59.jar -role node -port 5555
#遠端機器註冊節點
java -jar selenium-server-standalone-3.141.59.jar -role node -port 5556 -hub http://192.168.63.143:4444/grid/register

4.檢視後臺http://192.168.63.143:4444/grid/console