Hi,
I have problems to get Selenium to work with Firefox 3: I tried to start selenium server in interactive mode and get a new browser session for Firefox 3 like described in the [RC Tutorial|
http://selenium-rc.openqa.org/tutorial.html]. With Selenium 1.0 beta 1 I'm getting this exception:
{code}
16:15:33.496 INFO [12] org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher - Preparing Firefox profile...
16:15:54.230 WARN [12] org.mortbay.http.HttpConnection - GET /selenium-server/driver/?cmd=getNewBrowserSession&1=*firefox&2=
http://www.google.com HTTP/1.1
java.lang.RuntimeException: Firefox refused shutdown while preparing a profile
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:277)
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.launch(FirefoxCustomProfileLauncher.java:147)
at org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher.launchRemoteSession(AbstractBrowserLauncher.java:24)
at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:312)
at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:113)
at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:78)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:653)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:410)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:388)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:135)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher$FileLockRemainedException: Lock file still present! C:\DOKUME~1\ssc\LOKALE~1\Temp\customProfileDir98367f6f09a64844ab44af9895d6ffee\parent.lock
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFileLockToGoAway(FirefoxCustomProfileLauncher.java:235)
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:275)
... 18 more
16:15:54.308 DEBUG [12] org.mortbay.http.HttpConnection - RESPONSE:
HTTP/1.1 500 Internal Server Error
Date: Thu, 26 Jun 2008 14:15:33 GMT
Server: Jetty/5.1.x (Windows XP/5.1 x86 java/1.6.0_06
Connection: close
{code}
When doing this, my process explorer tool shows new firefox processes for each test, started with this command by selenium:
"C:\Programme\Mozilla Firefox\firefox.exe" "-profile" "C:\DOKUME~1\ssc\LOKALE~1\Temp\customProfileDir25765ace0260498f95ff3cc2e3d8ede0 " "-chrome" "chrome://killff/content/kill.html"
This processes keeps a lock on the "parent.lock" files, e.g. on "C:\Dokumente und Einstellungen\ssc\Lokale Einstellungen\Temp\customProfileDir25765ace0260498f95ff3cc2e3d8ede0\parent.lock"
I then tried the current nightly build (selenium-remote-control-1.0-20080626.090504-453-dist.zip) an I'm getting this exception:
{code}
16:16:59.231 INFO [12] org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher - Preparing Firefox profile...
16:17:19.309 ERROR [12] org.openqa.selenium.server.BrowserSessionFactory - Failed to start new browser session, shutdown browser an clear all session data
java.lang.RuntimeException: Timed out waiting for profile to be created!
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:212)
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.launch(FirefoxCustomProfileLauncher.java:88)
at org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher.launchRemoteSession(AbstractBrowserLauncher.java:26)
at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:318)
at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:115)
at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:80)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:673)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:376)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:353)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:114)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
16:17:19.371 DEBUG [12] org.openqa.selenium.server.FrameGroupCommandQueueSet - clearing queue set
16:17:19.371 INFO [12] org.openqa.selenium.server.SeleniumDriverResourceHandler - Got result: Failed to start new browser session: Error while launching browser on session null
16:17:19.371 DEBUG [12] org.mortbay.http.HttpContext - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler in HttpContext[/selenium-server,/selenium-server]
16:17:19.371 DEBUG [12] org.mortbay.http.HttpConnection - RESPONSE:
HTTP/1.1 200 OK
Date: Thu, 26 Jun 2008 14:16:59 GMT
Server: Jetty/5.1.x (Windows XP/5.1 x86 java/1.6.0_06
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 66
{code}
After this there still is a "C:\DOKUME~1\ssc\LOKALE~1\Temp\customProfileDir..." directory but this time no firefox.exe process.
Can anyone reproduce this? (I can on a second machine) Are there any positive tests of selenium 1.0 beta 1 with firefox 3?
Any feedback would be welcomed!
Regards
Stefan