- qajanaki
- Posts : 4
Join date : 2012-04-13
Getting main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH
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
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
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
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
- OpenQA.Selenium.NoSuchElementException : Unable to find element
- FireFox is not loaded if binary-componet/interfaces in chrome.manifest is more than 10
- Setting the path to firefox
- Selenium 2 Webdriver cant find element by xpath after upgrading from firefox 3.6 to 5
- Getting the error msg 'Error: Could not find or load main class java-jar' while executing the selenium code in eclipse
Permissions in this forum:
You cannot reply to topics in this forum