Selenium RC fails to launch browser in interactive mode

12 views
Skip to first unread message

jignesh c.patel

unread,
Dec 11, 2007, 2:26:59 AM12/11/07
to selenium-users...@googlegroups.com
Hi All,
I started on with Selenium RC. I am dealing with issues on startup while launching browser in interactive mode, Below is the entire log.

Platform : Windows XP
Firefox : 2.0.0.11 (Install location : C:\Program Files\Mozilla Firefox\firefox.exe)

Any body please help me on this.



C:\Documents and Settings\jignesh>java -jar "C:\Documents and Settings\jignesh\Desktop\selenium-remote-control-0.9.0\server\selenium-server.jar" -interactive

application/xhtml+xml
Dec 11, 2007 12:17:01 PM org.mortbay.http.HttpServer doStart
INFO: Version Jetty/0.9.0
Dec 11, 2007 12:17:01 PM org.mortbay.util.Container start
INFO: Started HttpContext[/selenium-server/driver,/selenium-server/driver]
Dec 11, 2007 12:17:01 PM org.mortbay.util.Container start
INFO: Started HttpContext[/selenium-server,/selenium-server]
Dec 11, 2007 12:17:01 PM org.mortbay.util.Container start
INFO: Started HttpContext[/,/]
Dec 11, 2007 12:17:01 PM org.mortbay.http.SocketListener start
INFO: Started SocketListener on 0.0.0.0:4444
Dec 11, 2007 12:17:01 PM org.mortbay.util.Container start
INFO: Started org.mortbay.jetty.Server@156ee8e
Entering interactive mode... type Selenium commands here (e.g: cmd=open&1=http://www.yahoo.com)

cmd=getNewBrowserSession&1=*firefox&2=http://www.google.com

---> Requesting http://localhost:4444/selenium-server/driver?cmd=getNewBrowserSession&1=*firefox&2=http://www.google.com
Dec 11, 2007 12:23:19 PM org.mortbay.util.FileResource {code:html}<clinit>{code}
INFO: Checking Resource aliases
GET: cmd=getNewBrowserSession&1=*firefox&2=http://www.google.com
customProfileDir = C:\DOCUME~1\jignesh\LOCALS~1\Temp\customProfileDir999166
Extracting /customProfileDirCUSTFF to C:\DOCUME~1\jignesh\LOCALS~1\Temp\customProfileDir999166
Preparing Firefox profile...
Dec 11, 2007 12:23:41 PM org.mortbay.http.HttpConnection exception
WARNING: 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:26
1)
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.launch(FirefoxCustomProfileLauncher.java:135)
at org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher.launchRemoteSession(AbstractBrowserLauncher.java:24)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:470)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:316)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:296)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.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.FirefoxCustomProfileLauncher$FileLockRemainedException: Lock file still present! C:\DOCUME~1\ji
gnesh\LOCALS~1\Temp\customProfileDir999166\parent.lock
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFileLockToGoAway(FirefoxCustomProfileLauncher.java:219)
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:25
9)
... 15 more
Server returned HTTP response code: 500 for URL: http://localhost:4444/selenium-server/driver/?cmd=getNewBrowserSession&1=*firefox&2=http://www.google
.com


Regards,
Jignesh C.Patel

subu

unread,
Dec 11, 2007, 11:53:34 AM12/11/07
to selenium-users...@googlegroups.com
please show me ur code
then only i will be able to tell what the problem is
without that it will be difficult

jignesh c.patel

unread,
Dec 12, 2007, 12:34:24 AM12/12/07
to selenium-users...@googlegroups.com
Hello,

I am working with interactive mode and command where it's getting failed is on launching of browser (In fact very much initial step), Where code comes into picture here?

Regards,
Jignesh Patel

Reply all
Reply to author
Forward
0 new messages