【发布时间】:2021-12-22 19:47:40
【问题描述】:
从这里下载 selenium-server-4.0.0.jar 后
https://www.selenium.dev/downloads/
我把这个jar文件放在c文件夹中,然后 使用 cmd 我尝试使用此命令启动 selenium 网格集线器
java -jar selenium-server-4.0.0.jar hub
我无法运行 selenium 网格集线器,它显示以下内容
C:\>java -jar selenium-server-4.0.0.jar hub
12:29:21.621 INFO [LogManager$RootLogger.log] - Using the system default encoding
12:29:21.624 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
12:29:22.034 INFO [BoundZmqEventBus.<init>] - XPUB binding to [binding to tcp://*:4442,
advertising as tcp://192.168.100.8:4442], XSUB binding to [binding to tcp://*:4443,
advertising as tcp://192.168.100.8:4443]
12:29:22.073 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://192.168.100.8:4442 and
tcp://192.168.100.8:4443
12:29:22.094 INFO [UnboundZmqEventBus.<init>] - Sockets created
12:29:23.110 INFO [UnboundZmqEventBus.<init>] - Event bus ready
12:29:24.443 INFO [Hub.execute] - Started Selenium Hub 4.0.0 (revision 3a21814679):
http://192.168.100.8:4444
我试着把这个网址放在 chrome 浏览器中
http://192.168.100.8:4444
然后它显示这个
Unable to find /index.html
【问题讨论】:
-
看起来非常好。网格控制台的 url 现在是
http://192.168.100.8:4444/ui/index.html#/
标签: selenium selenium-webdriver webdriver selenium-chromedriver selenium-grid