Step 1: Open https://sites.google.com/a/chromium.org/chromedriver/downloads to find the latest version of Chromedriver.exe;
Step 2:mac only Chromedriver_mac32.zip, whether it is 32 Mac or 64 of the Mac are under this version of the line;
Step 3: Unpack the package and add the suffix. exe;
Step 4: Open finder, select Go to Folder in Go menu, enter/usr/bin to open the path;
Step 5: Place the Chromedriver.exe under the/usr/bin.
If you use Chromedriver also reported the following exception:
Java.lang.IllegalStateException:The path to the driver executable must is set by the Webdriver.chrome.driver system Prope Rty; For more information, see Https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. The latest version can downloaded from http://chromedriver.storage.googleapis.com/index.html
That needs to be added in the Java program:
System.setproperty ("Webdriver.chrome.driver", "/usr/bin/chromedriver.exe");
Webdriver Driver = new Chromedriver ();
Install Chromedriver.exe under Mac