Could not start Selenium session: Failed to start new browser session: Error while launching browser

5,002 views
Skip to first unread message

Rajeev

unread,
Aug 4, 2011, 11:25:01 AM8/4/11
to Selenium Users
Hi ,
I am getting this error while executing my test case :
Please, can anyone help mw fixing the below error .
Thanks in advance.


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:
90)
at com.core.raj.CSel.setUp(CSel.java:15)
at junit.framework.TestCase.runBare(TestCase.java:132)
at
com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:
228)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:
83)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:
45)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
196)
Caused by: com.thoughtworks.selenium.SeleniumException: Failed to
start new browser session: Error while launching browser
at
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:
101)
at
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:
95)
at
com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:
266)
at
com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:
227)
at
com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:
82)
... 16 more

Mark Collin

unread,
Aug 4, 2011, 12:09:01 PM8/4/11
to seleniu...@googlegroups.com
Have you got a selenium.start() in your script?

--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to
selenium-user...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/selenium-users?hl=en.


--
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

If you have received this email in error please notify postm...@ardescosolutions.com

Krishnan Mahadevan

unread,
Aug 4, 2011, 12:16:14 PM8/4/11
to seleniu...@googlegroups.com
What browser are you dealing with here ? If its firefox perhaps you might want to check if there is a firefox stuck in memory (use task manager to explore and kill it if its running already) and then retry.

Hope that helps 

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



vamsi tatikonda

unread,
Aug 4, 2011, 1:07:27 PM8/4/11
to seleniu...@googlegroups.com
Just go to the Task Manager and kill your browser instances and run your test again..It should work.

Thanks,
Vamsi

Reaz Patwary

unread,
Aug 4, 2011, 1:13:11 PM8/4/11
to Selenium Users
I had similar issue. It was happening because of firefox issue and
firefox was updated and your selenium server is not ready for the
updated version of firefox. Either download a new copy of stand alone
selenium server or path your old server then run the test. It should
work.

Here is the link to path selenium server for updated version of
firefox.


http://groups.google.com/group/qahelp4all/browse_thread/thread/f38146a7b4b6dbff?hl=en


Thanks
RP
Reply all
Reply to author
Forward
0 new messages