正确configurationselenium服务器(docker)

我试图在我的Ubuntu服务器上运行selenium/铬服务器:

$ docker run -d -p 4444:4444 -p 5900:5900 selenium/standalone-chrome-debug:3.4.0-chromium 

在这个docker集装箱的日志中,我看到以下内容。 所以我认为configuration是错误的 – 因为有例如平台窗口设置…我也不需要歌剧,Safari浏览器或Internet Explorer – 所以我不明白这些行…

 11:58:53.364 INFO - Selenium build info: version: '3.4.0', revision: 'unknown' 11:58:53.407 INFO - Launching a standalone Selenium Server 2017-05-16 11:58:54.732:INFO::main: Logging initialized @14874ms to org.seleniumhq.jetty9.util.log.StdErrLog 11:58:56.886 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped: registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX 11:58:56.888 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped: registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX 11:58:56.889 INFO - Driver class not found: com.opera.core.systems.OperaDriver 11:58:56.890 INFO - Driver provider com.opera.core.systems.OperaDriver registration is skipped: Unable to create new instances on this machine. 11:58:56.892 INFO - Driver class not found: com.opera.core.systems.OperaDriver 11:58:56.893 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered 11:58:56.896 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped: registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform LINUX 2017-05-16 11:58:58.120:INFO:osjs.Server:main: jetty-9.4.3.v20170317 2017-05-16 11:58:58.887:INFO:osjsh.ContextHandler:main: Started osjsServletContextHandler@14acaea5{/,null,AVAILABLE} 2017-05-16 11:58:59.851:INFO:osjs.AbstractConnector:main: Started ServerConnector@7bbdf808{HTTP/1.1,[http/1.1]}{0.0.0.0:4444} 2017-05-16 11:58:59.865:INFO:osjs.Server:main: Started @20008ms 11:58:59.865 INFO - Selenium Server is up and running 

这些线是selenium试图找出哪些function可用。 您的Selenium Docker容器被认为是Linux操作系统。 IE和Edge是仅限Windows,而Safari则在MacOS上运行。 Opera没有安装,所以Selenium没有Opera驱动。

请注意,您正在运行Chrome独立版,日志中没有提及Chrome。 这是好事。