Download Geckodriver For Mac

Step 1. Install Selenium

GeckodriverChrome

Create a maven project and add dependency for Selenium. To get maven details open https://mvnrepository.com/search?q=selenium. This will list down all selenium related repositories. Select selenium java and select latest version. You can find the maven details like:

<!– https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java –>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.141.59</version>
</dependency>

WebDriver for Chrome. All code is currently in the open source Chromium project. This project is developed by members of the Chromium and WebDriver teams. Download mac os specific GeckoDriver executable. This will download the tar file. Unzip it to get the geckodriver unix executable. Copy this file into your project lib folder. Open the terminal and run command chmod +x gecko driver. Here is sample code to test. GeckoDriver is implemented and supported by Mozilla, refer to their documentation for supported versions. Internet Explorer. Only version 11 is supported, and it requires additional configuration. SafariDriver is supported directly by Apple, for more information, check their documentation. Go to the geckodriver releases page. Find the latest version of the driver for your platform and download it. Find the latest version of the driver for your platform and download it.

Step 2. Install Gecko driver

Geckodriver

Download mac os specific GeckoDriver executable. This will download the tar file. unzip it to get the geckodriver unix executable. Copy this file into your project lib folder. Open the terminal and run command
chmod +x gecko driver

Here is sample code to test:

Download Geckodriver Selenium For Mac