Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

When I run the selenium RC script, I am getting Failed to start new browser, Firefox 3 could not be found in the path!

View previous topic View next topic Go down

When I run the selenium RC script, I am getting Failed to start new browser, Firefox 3 could not be found in the path!

Post by gchandrasekaran82 on Sat Mar 12, 2011 7:26 pm

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

gchandrasekaran82
Regular Participant
Regular Participant

Posts : 33
Join date : 2011-02-16

Back to top Go down

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!

Post by chinda on Mon Mar 14, 2011 11:20 am

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!

chinda

Posts : 5
Join date : 2011-02-22

Back to top Go down

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!

Post by sulee on Tue Mar 15, 2011 3:07 pm

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.

sulee
Active particpant
Active particpant

Posts : 14
Join date : 2010-12-27

Back to top Go down

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!

Post by auto_ashish1 on Wed Apr 06, 2011 12:16 am

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

auto_ashish1
Active particpant
Active particpant

Posts : 21
Join date : 2011-03-10

Back to top Go down

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!

Post by Sponsored content Today at 1:55 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum