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 machine read
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://seleniumhq.org
2- Go to Download tab
3- Again navigate to “SafariDriver” heading
4- Now click on 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.[the_ad_placement id=”incontent”]