

As in Windows, we do not need to configure any path of the file in Mac. Once downloaded, extract the file and save the geckodriver.exe file to the /usr/local/bin location. Then click on the link corresponding to Mac OS. In the Supported platforms page, click on geckodriver releases link.

Click on the Documentation link below Firefox.


Visit the link − and go to the Browser segment. Syntax WebDriver driver=new FirefoxDriver() We shall be able to launch the browser only after creating an object of the FirefoxDriver class. For Firefox versions which are greater than 47, the geckodriver.exe file is to be used. We can get Firefox working with Selenium webdriver on Mac OS.
