A, chromedriver download
1. Open your browser and enter chrome: chrome: // settings / help see the current version of chrome
2, download the corresponding version of chromedriver
Download: http://chromedriver.storage.googleapis.com/index.html
Select chromedriver mac system
Unzip the file directly
3, the chromedriver placed under usr / local / bin directory
This directory is hidden, so just open a Finder, then command + shift + G
Directly to chromedriver put to
4, code testing