我试图在我的ubuntu服务器上运行selenium / chrome服务器:
$ docker run -d -p 4444:4444 -p 5900:5900 selenium/standalone-chrome-debug:3.4.0-chromium
在此docker容器的日志中,我看到以下内容。所以我认为配置是错误的 - 例如有平台窗口设置... 我也不需要歌剧,野生动物园或网络浏览器 - 所以我不理解那些台词......
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 o.s.j.s.ServletContextHandler@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
答案 0 :(得分:0)
这些行是Selenium试图找出功能可用的内容。您的Selenium Docker容器被视为Linux操作系统。 IE和Edge仅限Windows,Safari在MacOS上运行。未安装Opera,因此Selenium没有Opera驱动程序。
请注意,您正在运行Chrome独立版,并且日志中未提及Chrome。这是件好事。