Previously SafariDriver was supporting Safari browser on Windows machine but recently Apple has decided to remove its support for windows and then executions on safari has become the job of Mac machine. So for the same, we need a mac machine where safari browser should be installed. But if you want to learn how to launch chrome in Selenium then read this post
Installing Chromedriver on MAC
and for windows. Read this post
Launch Chrome Browser Using WebDriver
So let’s get back to the topic, Safari driver has been implemented as a plugin in the safari browser and this provides a perfect match of client and server machine where SafariDriverServer acts as a server and Selenium-Java/Language binding acts as a client.
So for the same, we need to download the plugin and it needs to be installed on Safari browser and once plugin installed on Safari everything is set and you can write a script for a safari like any other browser by calling the
WebDriver driver = new SafariDriver();
[the_ad_placement id=”incontent”]So before moving ahead let see the steps to perform these actions.
1- Go to http://selenium.dev
2- Go to Download and Navigate to Browser Section
3- Again navigate to “Safari” heading and click on documentation link to find the detail of safaridriver.
4- Now click on the hyperlink beside “Latest Release”
5- It will download the plugin and double click on downloaded file and it will open the extension installation screen. Click on “Trust ” button and it will install it in the browser and by default, it will check WebDriver checkbox.
6- Go to your eclipse and write scripts and it will work like any other browser on Mac machine
For better understanding watch video once and if still, you have some doubt then please share your feedback.