How to get Firefox working with Selenium WebDriver on Mac OSX How to get Firefox working with Selenium WebDriver on Mac OSX selenium selenium

How to get Firefox working with Selenium WebDriver on Mac OSX


I believe you have several options:

Either specify the folder (in which your Firefox binary is) in your PATH system variable - here's how.

Or call

WebDriver driver = new FirefoxDriver(new FirefoxBinary(new File("path/to/your/firefox.exe")), profile);


For Mac, if you installed FireFox via brew cask, just symbolic link it to /Applications.

cd /Applicationsln -s /Users/<your-username>/Applications/Firefox.app Firefox.app

This worked for me.


In my case I need to move Firefox.app from /Users/username/Applications to /Applications