I am beginner to webdriver. I have setup all configurations. I am using firefox 27.0.1 version with selenium jar files 2.40.0. I have written code to open firefox browser with a URL. I am unable to run the code and got the below error. Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be Mac. It seems i should specify the firefox path to run the code. I tried to find the location on my mac. All i get is /Users/sathiyarengarajan/Library/Application Support/Firefox/Profiles. Tell me how to get the exact path on mac machine.
The typical location of FF is /Users/username/Applications/Firefox
To confirm the location right click on a FF shortcut and select "Get info". The dialog box displays.
Not quite the same problem, but since I found this answer when googling, I'm providing my solution here too.
I'm trying to find the firefox executable to execute it from scripts like cucumber / selenium tests without hardcoding the path. Here's what I do:
Find it with Spotlight
Another way would be to dump launch services database and grep it out there