title: Selenium RC test (PHPUnit)
body: <p><strong>Using, Centos, Apache, PHPUnit, Selenium RC,</strong> </p>
  
  <p>I was trying to test selenium RC which is running in one of my server.</p>
  
  <blockquote>
    <p>java -jar selenium-server-standalone-2.4.0.jar</p>
  </blockquote>
  
  <p>Initially i got error of firefox creating profile and it doesnot load anything up and gives error.</p>
  
  <p>Secondly i tried to do with given profile location.</p>
  
  <blockquote>
    <p>java -jar selenium-server-standalone-2.4.0.jar -firefoxProfileTemplate
    "/root/.mozilla/firefox/" &amp;</p>
  </blockquote>
  
  <p>still it shows error </p>
  
  <blockquote>
    <p>ERROR - Failed to start new browser session, shutdown browser and
    clear all session data</p>
  </blockquote>
  
  <p>INFO - Got result: Failed to start new browser session: Error while launching browser on session null</p>
  
  <p>Please share your view what may be the problem, 
  Running Mock , it is working, for test purpose, but firefox, is unable to lunch browser session.</p>
  
  <p>Note: its not GUI mode (NO X), it has firefox version 3.6.18, </p>
  
  <pre><code>09:48:20.312 INFO - Got result: Failed to start new browser session: Error while launching browser on session null
  09:48:39.659 INFO - Command request: getNewBrowserSession[*firefox3, http://google.co.uk] on session null
  09:48:39.659 INFO - creating new remote session
  09:48:39.660 INFO - Allocated session 17b9149077f648d3bc89b3f106466c6c for http://google.co.uk, launching...
  09:48:39.860 INFO - Preparing Firefox profile...
  09:49:00.017 ERROR - Failed to start new browser session, shutdown browser and clear all session data
  java.lang.RuntimeException: Timed out waiting for profile to be created!
          at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:360)
          at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:114)
          at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83)
          at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:412)
          at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:375)
          at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:125)
          at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:87)
          at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:785)
          at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:422)
          at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:393)
          at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:146)
          at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1530)
          at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1482)
          at org.openqa.jetty.http.HttpServer.service(HttpServer.java:909)
          at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
          at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
          at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
          at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
          at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
          at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
  09:49:00.048 INFO - Got result: Failed to start new browser session: Error while launching browser on session null
  </code></pre>