- qajanaki
- Posts : 4
Join date : 2012-04-13
Getting main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH
on Wed Nov 06, 2013 4:20 pm
Hi, I am New to Selenium. I'm trying to run a testcase where I can check the Window Title of the application and pass the testcase if the title is displayed and fail the testcase if the tile is not the same.I am running into issues when I tried to execute the program.
here is the exception that is noticed
----------------------------------------
Exception in thread "main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: XP
Build info: version: '2.37.0', revision: 'a7c61cb', time: '2013-10-18 17:14:00'
System info: host: 'gapvak-28', ip: '192.168.0.46', os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_30'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.Executable.(Executable.java:72)
at org.openqa.selenium.firefox.FirefoxBinary.(FirefoxBinary.java:59)
at org.openqa.selenium.firefox.FirefoxBinary.(FirefoxBinary.java:55)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:99)
at mypackage.myclass.main(myclass.java:10)
-------------------------------------------------------------------------------
I have loaded the necessary drivers....My firefox is loaded in C drive and selenium and eclipse are loaded in E drive.
Can anyone help me out to get rid of this exception.
Thanks in advance.
Janaki
here is the exception that is noticed
----------------------------------------
Exception in thread "main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: XP
Build info: version: '2.37.0', revision: 'a7c61cb', time: '2013-10-18 17:14:00'
System info: host: 'gapvak-28', ip: '192.168.0.46', os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_30'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.Executable.
at org.openqa.selenium.firefox.FirefoxBinary.
at org.openqa.selenium.firefox.FirefoxBinary.
at org.openqa.selenium.firefox.FirefoxDriver.
at mypackage.myclass.main(myclass.java:10)
-------------------------------------------------------------------------------
I have loaded the necessary drivers....My firefox is loaded in C drive and selenium and eclipse are loaded in E drive.
Can anyone help me out to get rid of this exception.
Thanks in advance.
Janaki
- bauer_inc
- Posts : 6
Join date : 2013-11-15
Re: Getting main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH
on Fri Nov 15, 2013 4:05 pm
Hi Janaki,
do you have firefox installed or is it just a portable version? Please ensure your firefox.exe is available in the system path variable (i think this should solve your problem)
Best Regards
Alex
do you have firefox installed or is it just a portable version? Please ensure your firefox.exe is available in the system path variable (i think this should solve your problem)
Best Regards
Alex
- qajanaki
- Posts : 4
Join date : 2012-04-13
Re: Getting main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH
on Fri Nov 15, 2013 4:30 pm
Hi Alex!
Thanks for the reply....i had Firefox installed in my machine and the class path was also set but still i was getting the error.... I had to add
"System.setProperty("webdriver.firefox.bin","D:\\Program Files\\Firefox\\firefox.exe");"
in my prog and it worked..
Regards,
Janaki
Thanks for the reply....i had Firefox installed in my machine and the class path was also set but still i was getting the error.... I had to add
"System.setProperty("webdriver.firefox.bin","D:\\Program Files\\Firefox\\firefox.exe");"
in my prog and it worked..
Regards,
Janaki
- bauer_inc
- Posts : 6
Join date : 2013-11-15
Re: Getting main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH
on Fri Nov 15, 2013 6:28 pm
Hi Janaki,
ah okay, normally it automatically detect by your class path where the driver's .exe is. (currently i'm testing some things with multiple browsers and also had to add new drivers to my path, and it takes a while that this takes effect).
Good luck and have fun with futured testing
Alex
ah okay, normally it automatically detect by your class path where the driver's .exe is. (currently i'm testing some things with multiple browsers and also had to add new drivers to my path, and it takes a while that this takes effect).
Good luck and have fun with futured testing

Alex
- Sponsored content
- Can any one one help me to select drop down value using selenium webdriver
- how to find element by attribute in webdriver
- Unable to run Selenium RC scripts in Firefox and Google chrome; running fine with "IE".
- Exception in thread "main" java.net.BindException: Selenium is already running on port 4444. Or some other service is.
- Create Batch file for Selenium
Permissions in this forum:
You cannot reply to topics in this forum
|
|