When I run the selenium RC script, I am getting Failed to start new browser, Firefox 3 could not be found in the path!
Page 1 of 1 • Share •
When I run the selenium RC script, I am getting Failed to start new browser, Firefox 3 could not be found in the path!
When I run the script, I am getting the below error...
I have pasted the firefox location in to system variable path... still i am getting the below error...
java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path!
Please add the directory containing ''firefox.exe'' to your PATH environment
variable, or explicitly specify a path to Firefox 3 like this:
*firefox3c:\blah\firefox.exe
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
at com.example.tests.flightbooking.setUp(flightbooking.java:13)
at junit.framework.TestCase.runBare(TestCase.java:128)
at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: com.thoughtworks.selenium.SeleniumException: Failed to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path!
Please add the directory containing ''firefox.exe'' to your PATH environment
variable, or explicitly specify a path to Firefox 3 like this:
*firefox3c:\blah\firefox.exe
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
... 16 more
I have pasted the firefox location in to system variable path... still i am getting the below error...
java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path!
Please add the directory containing ''firefox.exe'' to your PATH environment
variable, or explicitly specify a path to Firefox 3 like this:
*firefox3c:\blah\firefox.exe
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
at com.example.tests.flightbooking.setUp(flightbooking.java:13)
at junit.framework.TestCase.runBare(TestCase.java:128)
at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: com.thoughtworks.selenium.SeleniumException: Failed to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path!
Please add the directory containing ''firefox.exe'' to your PATH environment
variable, or explicitly specify a path to Firefox 3 like this:
*firefox3c:\blah\firefox.exe
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
... 16 more
gchandrasekaran82- Regular Participant

- Posts: 33
Join date: 2011-02-15
Re: When I run the selenium RC script, I am getting Failed to start new browser, Firefox 3 could not be found in the path!
You should add PATH environment or variable before.
If you run by Window, the PATH environment is follow step
My Computer->Property->Advance tab->Click Environment Variable
PATH is in System Variable part.
Good Luck!
If you run by Window, the PATH environment is follow step
My Computer->Property->Advance tab->Click Environment Variable
PATH is in System Variable part.
Good Luck!
chinda- Posts: 5
Join date: 2011-02-22
Re: When I run the selenium RC script, I am getting Failed to start new browser, Firefox 3 could not be found in the path!
Hi,
I had the same error. You should add the path of firefox to PATH environment variable. Yet just add the folder which contains firefox.exe. For example
D:\Mozilla Firefox . That was enough for me. When I added the full path like D:\Mozilla Firefox\firefox.exe, it didnt work. Hope this helps.
I had the same error. You should add the path of firefox to PATH environment variable. Yet just add the folder which contains firefox.exe. For example
D:\Mozilla Firefox . That was enough for me. When I added the full path like D:\Mozilla Firefox\firefox.exe, it didnt work. Hope this helps.
sulee- Active particpant

- Posts: 14
Join date: 2010-12-27
Re: When I run the selenium RC script, I am getting Failed to start new browser, Firefox 3 could not be found in the path!
Two solutions
1) You should add the path of firefox to PATH environment variable.
2) use the following command in code
setUp("http://testsitename.com","*firefox J:\Program Files\Mozilla Firefox\firefox.exe")
Basically you need to give the full path of your browser exe file
Regards
Ashish
itsthakur@gmail.com
91-9888179981
For online Selenium training go to my website- www.sejsoft.com
1) You should add the path of firefox to PATH environment variable.
2) use the following command in code
setUp("http://testsitename.com","*firefox J:\Program Files\Mozilla Firefox\firefox.exe")
Basically you need to give the full path of your browser exe file
Regards
Ashish
itsthakur@gmail.com
91-9888179981
For online Selenium training go to my website- www.sejsoft.com
auto_ashish1- Active particpant

- Posts: 21
Join date: 2011-03-10
Similar topics» X3-00 on/off path
» 6300 and 3110c security test failed
» 5 Best Approaches to Start A New Business With a Shoestring Budget.
» Getting error when i run selenium script in Eclipse, please help
» Selenium server launch only new browser windows but does not run the test.
» 6300 and 3110c security test failed
» 5 Best Approaches to Start A New Business With a Shoestring Budget.
» Getting error when i run selenium script in Eclipse, please help
» Selenium server launch only new browser windows but does not run the test.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
» sample webdriver code for php users
» which standalone server to use
» Dynamic Drop Down Selection
» It is possible to find list of all URL's exist in any web page in selenium ide
» It is possible to compare 2 same images in selenium IDE.
» how to compare 2 ULR's which is exist in same web page (View page source).
» Web Driver: Unable to click a link present inside the frame of a frameset
» Help me to get dynamicaly loaded options of dropdown in Selenium RC -Junit test case