With Selenium 3.0 and WebDriver becoming the W3C standard, Apple now provides SafariDriver built into the browser. We do not have to download it separately. However, in order to work it with Selenium WebDriver, we have to set a Develop | Allow Remote Automation option from Safari's main menu, as shown in the following screenshot:
Allowing remote automation