Selenium server hangs "unable to create Firefox profile"

I am trying to run a selenium test suite from the terminal using the following command:

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"

      

executing the above command in terminal outputs as follows ->

  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--->

      

After searching online, I found many solutions (up to 2013). The summary of these solutions is the incompatibility between the selenium server and the Firefox version. I tried most of the solutions, but none of them worked.

I am using ubuntu 14.04 (docker-image). Firefox works fine under xvfb..py tests also work fine using selenium python module. The problem only occurs when calling test cases from the terminal.

Selenium server version: 2.45.0 Firefox version: 38.0

A bad solution is required.

+3


source to share





All Articles