Selenium Grid(一)环境搭建
Selenium Grid(二)控制远程电脑运行自动化

1、下载Selenium Server

下载地址:http://www.seleniumhq.org/download

python自动化测试——Selenium Grid(一)环境搭建

 

 2、配置java环境(https://www.cnblogs.com/nicole-zhang/p/14704983.html)可输入java和javac命令验证

python自动化测试——Selenium Grid(一)环境搭建

 

 3、运行selenium server

(1)切换到selenium-server-standalone-3.141.59.jar所在目录,启动hub节点,只能启一个

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

python自动化测试——Selenium Grid(一)环境搭建

 

 (2)启动node节点,可启多个,需要设置不同端口号

python自动化测试——Selenium Grid(一)环境搭建

java -jar selenium-server-standalone-3.141.59.jar -role node -port 5556

hub和node在一台电脑上

java -jar selenium-server-standalone-3.141.59.jar -role node -port 5557

 

 

http://localhost:4444/grid/console

python自动化测试——Selenium Grid(一)环境搭建

 

相关文章:

  • 2021-08-06
  • 2021-08-24
  • 2021-05-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-10
  • 2022-01-08
  • 2022-01-21
  • 2021-04-13
  • 2021-09-06
相关资源
相似解决方案