Firefox launching problem in windows

1 view
Skip to first unread message

vamsi

unread,
Feb 20, 2008, 7:38:27 AM2/20/08
to selenium-users...@googlegroups.com
Hi,
i am not able to launch firefox using the command->cmd=getNewBrowserSession&1=*firefox&2=http://www.google.com. But able to launch firefox using the command using "cmd=getNewBrowserSession&1=*custom c:\Program Files\Mozilla Firefox\firefox.exet&2=http://www.google.com.

Due to this i am not able to launch the firefox from my python rc script.

I am also included the firefox installation location(c:\Program Files\Mozilaa Firefox\firefox.exe) in system path variable.

your help is appreciated.

This is the exception i am getting:
-
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Feb 20, 2008 4:23:49 PM org.mortbay.util.FileResource {code:html}<clinit>{code}
INFO: Checking Resource aliases
GET: cmd=getNewBrowserSession&1=%2Afirefox&2=http%3A%2F%2F10.0.2.102%3A9180%2Fod

customProfileDir = C:\DOCUME~1\VAMSI~1.TRA\LOCALS~1\Temp\customProfileDir829562
Extracting /customProfileDirCUSTFF to C:\DOCUME~1\VAMSI~1.TRA\LOCALS~1\Temp\cust
omProfileDir829562
Preparing Firefox profile...
Feb 20, 2008 4:24:11 PM org.mortbay.http.HttpConnection exception
WARNING: GET /selenium-server/driver/?cmd=getNewBrowserSession&1=%2Afirefox&2=ht
tp%3A%2F%2F10.0.2.102%3A9180%2Fod HTTP/1.1
java.lang.RuntimeException: Firefox refused shutdown while preparing a profile
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLaunc
her.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:261)
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLaunc
her.launch(FirefoxCustomProfileLauncher.java:135)
at org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher.l
aunchRemoteSession(AbstractBrowserLauncher.java:24)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowse
rSession(SeleniumDriverResourceHandler.java:470)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(Se
leniumDriverResourceHandler.java:316)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleComman
dRequest(SeleniumDriverResourceHandler.java:296)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(Selen
iumDriverResourceHandler.java:129)
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.FirefoxCustomProfileLaunc
her$FileLockRemainedException: Lock file still present! C:\DOCUME~1\VAMSI~1.TRA\
LOCALS~1\Temp\customProfileDir829562\parent.lock
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLaunc
her.waitForFileLockToGoAway(FirefoxCustomProfileLauncher.java:219)
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLaunc
her.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:259)
... 15 more
-
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Regards,
Vamsi.

vamsi

unread,
Feb 21, 2008, 1:55:17 AM2/21/08
to selenium-users...@googlegroups.com
Hi,
Selenium-RC - 0.9.0
Firefox - 2.0.0.12

is it the problem?Is there any work around for this?
Then how come it is launching the browser using custom option.

--vamsi

Elmar Fasel

unread,
Feb 21, 2008, 4:06:56 AM2/21/08
to selenium-users...@googlegroups.com
Hi,

we also had a problem with launching Firefox.
Our workaround was to change the class FirefoxCustomProfileLauncher.

See http://jira.openqa.org/browse/SRC-236#action_16203

Best regards,
Elmar

gim_h

unread,
Feb 21, 2008, 9:32:58 AM2/21/08
to selenium-users...@googlegroups.com
hi vamsi,
this is an old bug, and has been fixed in 0.9.2. http://jira.openqa.org/browse/SRC-216
i suggest you upgrade your SRC, if some of you test cases are successful in SRC0.9.0, but failed in 0.9.2, you have to go back to SRC 0.9.0 and firefox 1.5, or you have to change your test scripts.
there are some changes between 0.9.0 and 0.9.2, you can refer to the release note http://selenium-rc.openqa.org/release-notes.html

Elmar Fasel

unread,
Feb 21, 2008, 10:17:47 AM2/21/08
to selenium-users...@googlegroups.com
Hi gim_h,

sorry, I don't want to be pushy, but what about this comment?
Reply all
Reply to author
Forward
0 new messages