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.