FirefoxDriver exception - Cannot find firefox binary in PATH

13,171 views
Skip to first unread message

Prashant

unread,
Aug 5, 2009, 2:47:17 AM8/5/09
to webdriver
Hi,

I am trying to run one example given on getting Started page
with FirefoxDriver. But I am getting following exception.

Exception in thread "main" org.openqa.selenium.WebDriverException:
Cannot find firefox binary in PATH. Make sure firefox is installed. OS
appears to be: VISTA
System info: os.name: 'Windows Vista', os.arch: 'x86', os.version:
'6.0', java.version: '1.6.0_11'
Driver info: driver.version: firefox
at org.openqa.selenium.firefox.internal.Executable.<init>
(Executable.java:48)
at org.openqa.selenium.firefox.FirefoxBinary.<init>
(FirefoxBinary.java:50)
at org.openqa.selenium.firefox.FirefoxBinary.<init>
(FirefoxBinary.java:46)
at org.openqa.selenium.firefox.FirefoxDriver.<init>
(FirefoxDriver.java:84)
at org.openqa.selenium.example.GoogleSuggest.main(GoogleSuggest.java:
15)

I have downloaded latest binaries from webdriver project page
(webdriver-all-1039.zip). I am running Firefox version 3.5.2 on Vista.

Can somebody help me to solve this issue?

Thanks,
Prashant

MAYUR BONGIRWAR

unread,
Aug 5, 2009, 4:00:32 AM8/5/09
to webd...@googlegroups.com
Hi Prashnt,
                 Try it for lower versions of firefox 3.0.It may solve your problem.

Simon Stewart

unread,
Aug 5, 2009, 4:35:56 AM8/5/09
to webd...@googlegroups.com
Hi,

Where is firefox installed on your machine? If it's in a non-standard
location, then you may need to set the "webdriver.firefox.bin"
property to point to the firefox.exe.

Regards,

Simon

Prashant

unread,
Aug 5, 2009, 7:03:16 AM8/5/09
to webdriver
While installing Firefox I just selected default option and on my
Vista box its installed at "C:\ProgramData\Mozilla Firefox".
Looks like by default it has not installed in "Program Files" and
installed in "ProgramData". I think that was causing the problem.

BTW, setting "webdriver.firefox.bin" property worked for me.

Thanks,
Prashant

On Aug 5, 1:35 pm, Simon Stewart <simon.m.stew...@gmail.com> wrote:
> Hi,
>
> Where is firefox installed on your machine? If it's in a non-standard
> location, then you may need to set the "webdriver.firefox.bin"
> property to point to the firefox.exe.
>
> Regards,
>
> Simon
>

Mike Riley

unread,
Dec 5, 2012, 2:13:34 PM12/5/12
to webd...@googlegroups.com
Well that isn't the standard location, and I am guessing your system PATH environment variable doesn't have that directory in it, which is probably why it can't find it.

Right click on My Computer and select Properties.  From in there you can find a button that will let you change the Environment Variables for the system.  Add that directory to the end of your PATH list and it should find it, after you restart the program so it has the new PATH setting.

Mike

On Tuesday, December 4, 2012 3:27:12 AM UTC-8, Siva wrote:
Hi,

When i try to execute my script i get the below error message.

I have installed my Firefox in the below path. Version: 10.0
Firefox Path: C:\Program Files\Firefox\firefox.exe

org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: VISTA
Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 21:09:54'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_35'
Driver info: driver.version: FirefoxDriver

Can any one provide me the solution for this.

Regards,
Siva
Reply all
Reply to author
Forward
0 new messages