Safari provides native support for the WebDriver API starting with Safari 10 on OS X El Capitan and macOS Sierra and Safari comes bundled with a new driver implementation that’s maintained by the Web Developer Experience team at Apple.

Configuring Safari to allow automation

As a feature intended for developers, Safari’s Automation support is turned off by default. To turn on Automation support, do the following:

1. Ensure that the Develop menu is available. It can be turned on by opening Safari preferences (Safari > Preferences in the menu bar), going to the Advanced tab, and ensuring that the Show Develop menu in menu bar checkbox is checked.

Here's a visual guide for enabling Develop Menu in Safari:

2. Enable Remote Automation in the Develop menu. This is toggled via Develop > Allow Remote Automation in the menu bar.

Supported Versions

As specified earlier, you do not need to download anything besides Safari 10 to get the Apple-developed Webkit driver.

For Safari versions lower than 10.1,

1. Go to 'Preferences' and switch to 'Extensions' tab to check if Selenium Driver is installed. If not installed, goto SeleniumHQ Downloads page and download the latest release under SafariDriver section.

2. Double-click to install the "SafariDriver.safariextz" safari extension file and enable it in the Extensions menu in Safari.

3. Additionally, authorize safaridriver to launch the webdriverd service which hosts the local web server. To permit this, run /usr/bin/safaridriver once manually from the terminal and complete the authentication prompt.

Note: This is a workaround for Safari version less than 10. It is highly recommended to install Safari 10 to avoid the hassles.

That's all we need to start running Tests on a local Mac Machine using Testsigma Hybrid Execution. Happy Testing!!

Courtesy :