Selenium服务器挂起“无法创建firefox配置文件”

时间:2015-05-17 20:29:08

标签: firefox testing selenium

我正在尝试使用以下命令从终端运行selenium测试套件:

java -jar /var/lib/selenium/selenium-server.jar -timeout 60 -htmlSuite "   firefox /usr/lib/firefox/firefox" "http://url " "/test-     case/new/test_suite.html" "/test-case/selenium.html"

在终端输出中运行上述命令 - >

  20:08:59.134 INFO - Launching a standalone server
  20:08:59.175 INFO - Java: Oracle Corporation 25.45-b02 
  20:08:59.176 INFO - OS: Linux 3.13.0-52-generic amd64
  20:08:59.186 INFO - v2.45.0, with Core v2.45.0. Built from revision 5017cb8
  20:08:59.247 INFO - Default driver org.openqa.selenium.ie.InternetExplorerDriver registration is skipped: registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match with current platform: LINUX
  20:08:59.300 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
  20:08:59.301 INFO - Version Jetty/5.1.x
  20:08:59.303 INFO - Started HttpContext[/selenium-server,/selenium-server]
  20:08:59.328 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@256216b3
  20:08:59.328 INFO - Started HttpContext[/wd,/wd]
  20:08:59.329 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
  20:08:59.329 INFO - Started HttpContext[/,/]
  20:08:59.332 INFO - Started SocketListener on 0.0.0.0:4444
  20:08:59.332 INFO - Started org.openqa.jetty.jetty.Server@133314b
  jar:file:/var/lib/selenium/selenium-server.jar!/customProfileDirCUSTFFCHROME
  20:08:59.465 INFO - Preparing Firefox profile...
  <-----stuck here--->

搜索网络后,我发现了很多解决方案(2013年之前回答)。这些解决方案的摘要是selenium服务器和Firefox版本之间的不兼容性。我尝试了大多数解决方案,但没有一个有效。

我使用的是ubuntu 14.04(docker-image)。 Firefox在xvfb下运行良好。 .py测试套件也使用selenium python模块完美运行。仅当从终端调用测试套件时才会出现此问题。

Selenium服务器版本:2.45.0 Firefox版本:38.0

需要解决方案。

0 个答案:

没有答案