Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Getting main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH

View previous topic View next topic Go down

Getting main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH

Post by qajanaki 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

qajanaki

Posts : 4
Join date : 2012-04-13

Back to top Go down

Re: Getting main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH

Post by bauer_inc 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

bauer_inc

Posts : 6
Join date : 2013-11-15

Back to top Go down

Re: Getting main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH

Post by qajanaki 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

qajanaki

Posts : 4
Join date : 2012-04-13

Back to top Go down

Re: Getting main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH

Post by bauer_inc 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 Smile


Alex

bauer_inc

Posts : 6
Join date : 2013-11-15

Back to top Go down

Re: Getting main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH

Post by Sponsored content Today at 3:22 am


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