Re: Unable to start Firefox 3.0.0 with Selenium RC

33 views
Skip to first unread message

钟芳园

unread,
Jul 1, 2008, 11:19:08 PM7/1/08
to selenium-users...@googlegroups.com
我也遇到同样的问题,firefox升级到3.0版本以后,Selenium RC就不能启动firefox了!
I am Chinese!

Rahul

unread,
Jul 2, 2008, 12:15:37 AM7/2/08
to selenium-users...@googlegroups.com
Thats exactly what I m seeing too. Around 10-15 instances of Firefox in my Task Manager. If anybody has some more suggestions, it would be appreciated.
Seems there are a lot of people facing this issue.


Thanks.

petercoll

unread,
Jul 2, 2008, 3:36:32 AM7/2/08
to selenium-users...@googlegroups.com
Hi,

Got the same problem ! Also tried with the nighly build but got 'Timed out waiting for profile to be created'

Hope this can solved soon

petercoll

unread,
Jul 2, 2008, 9:14:50 AM7/2/08
to selenium-users...@googlegroups.com
Tx gim for the reply but I can't get it to work with FF3. No problem for IE.
This is how I use Selenium :

I start de selenium server
java -jar selenium-server.jar -port 4444\\ \\ +14:51:06.544 INFO - Java: Sun Microsystems Inc. 1.6.0_02-b06 \\ 14:51:06.544 INFO - OS: Windows XP 5.1 x86 \\ 14:51:06.544 INFO - v1.0-SNAPSHOT [1123], with Core v1.0-SNAPSHOT [2094] \\ 14:51:06.638 INFO - Version Jetty/5.1.x \\ 14:51:06.653 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver] \\ 14:51:06.653 INFO - Started HttpContext[/selenium-server,/selenium-server] \\ 14:51:06.653 INFO - Started HttpContext[/,/] \\ 14:51:06.669 INFO - Started SocketListener on 0.0.0.0:4444 \\ 14:51:06.669 INFO - Started org.mortbay.jetty.Server@201f9+

I start the client (java/Junit)
+ \\ new DefaultSelenium("localhost", 4444, "*firefox3 C:\\Peter\\Program Files\\Mozilla Firefox\\firefox.exe", url)+

I start unit test and get the stacktrace :
+14:52:36.384 INFO - creating new remote session \\ 14:52:36.586 INFO - Allocated session a61e98ec96fb4744938808cb29fa6d71 for http: \\ //localhost, launching... \\ 14:52:36.649 INFO - Preparing Firefox profile... \\ 14:52:57.299 ERROR - Failed to start new browser session, shutdown browser an cl \\ ear all session data \\ java.lang.RuntimeException: *Timed out waiting for profile to be created!* \\ at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai \\ tForFullProfileToBeCreated(FirefoxChromeLauncher.java:226) \\ at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.pop \\ ulateCustomProfileDirectory(FirefoxChromeLauncher.java:96) \\ at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.lau \\ nch(FirefoxChromeLauncher.java:73) \\ at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.lau \\ nchRemoteSession(FirefoxChromeLauncher.java:261) \\ at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSessi \\ on(BrowserSessionFactory.java:318) \\ ... \\ 14:52:57.299 INFO - Got result: Failed to start new browser session: Error while \\ launching browser on session null \\ 14:52:57.330 INFO - Command request: open[http://localhost/controleurs/Login.fac \\ es, ] on session null \\ 14:52:57.330 ERROR - Exception running command \\ java.lang.NullPointerException: sessionId should not be null; has this session b \\ een started yet?+

Then I realised I was not using the driver-jar of the latest nightly build, So I changed
the classpath but this results in another stacktrace :

+java.lang.RuntimeException: Could not start Selenium session: Internal Server Error \\ at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:76) \\ at be.delijn.controleurs.presentatie.AbstractSeleniumTestCase.setUp(AbstractSeleniumTestCase.java:69) \\ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) \\ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) \\ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)+

Any help is much appreciated.

Kind regards

Peter

petercoll

unread,
Jul 2, 2008, 10:17:53 AM7/2/08
to selenium-users...@googlegroups.com
Tx gim,

I tried to use your settings but got exactly the same result.

The only difference is that I have only ff3 installed.

I'll give up on this and test on IE !http://clearspace.openqa.org/images/emoticons/confused.gif|border=0!

Rheid S.

unread,
Jul 2, 2008, 1:55:57 PM7/2/08
to selenium-users...@googlegroups.com
The nightly build did clear up the poliferation of firefox instances in the task manager; however, I am still getting Selenium session failures to start a new browsers session.

java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:76)
at com.hp.vse.glib2.selenium.SeleniumBase.initSelenium(SeleniumBase.java:189)
at com.hp.vse.glib2.selenium.SeleniumBase.setUp(SeleniumBase.java:180)
at com.hp.vse.glib2.selenium.SwakTest.setUp(SwakTest.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
at org.testng.TestRunner.beforeRun(TestRunner.java:501)
at org.testng.TestRunner.run(TestRunner.java:469)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:324)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)
at org.testng.SuiteRunner.run(SuiteRunner.java:198)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:823)
at org.testng.TestNG.runSuitesLocally(TestNG.java:790)
at org.testng.TestNG.run(TestNG.java:708)
at org.testng.TestNG.privateMain(TestNG.java:860)
at org.testng.TestNG.main(TestNG.java:833)
Caused by: com.thoughtworks.selenium.SeleniumException: Failed to start new browser session: Error while launching browser
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:81)
at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:185)
at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:164)
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:70)


Ankush Jhalani

unread,
Jul 2, 2008, 2:49:16 PM7/2/08
to selenium-users...@googlegroups.com
I had the same issue, but nightly build worked for me..

I'd recommend the following things, stop selenium server, cmd prompt and end all the instances of firefox.... then try again :D

if still fails, restart the computer

bestaluck

WestyCHC

unread,
Jul 3, 2008, 4:28:18 AM7/3/08
to selenium-users...@googlegroups.com
I found I had this problem this morning after getting FF3... but following Ankush's advice this is now up and running again for me. Thanks.

Reply all
Reply to author
Forward
0 new messages