404 page not found在访问http://localhost:4444/ address 上访问selenoid
docker-compose.yml文件的内容
version: '3'
services:
selenoid:
image: "aerokube/selenoid"
network_mode: bridge
ports:
- "4444:4444"
volumes:
- "$PWD:/etc/selenoid/" # assumed current dir contains browsers.json
- "/var/run/docker.sock:/var/run/docker.sock"
selenoid-ui:
image: "aerokube/selenoid-ui"
network_mode: bridge
links:
- selenoid
ports:
- "8080:8080"
command: ["--selenoid-uri", "http://selenoid:4444"]期望的
就这样!您现在可以使用Selenoid而不是Selenium服务器。在测试中指定以下Selenium:
http://localhost:4444/wd/hub实际
404 page not found在访问http://localhost:4444/地址上的硒体时显示。
发布于 2019-09-22 13:06:03
这是一种预期的行为,在最近的发行版(只有/或/ping)中没有针对Selenoid的处理程序。在https://github.com/aerokube/selenoid/pull/804中添加了欢迎信息,因为很多人都在问同样的问题。
发布于 2020-12-01 06:35:23
你忘了加
environment:
command: ["-conf", "/etc/selenoid/browsers.json", "-log-output-dir", "/opt/selenoid/logs"]请参阅:https://github.com/aerokube/selenoid/blob/master/docs/docker-compose.adoc
在那之后应该有效..。
https://stackoverflow.com/questions/58040841
复制相似问题