Hi Lokesh, it's not possible to run a Selenium automation script with Safari browser on windows machine as Selenium has following compatibility issues with Safari Browser:
-
Though Safari browser can be installed on Windows machine, Apple decided to discontinue Safari browser on Windows machines from the year 2012. So the last and final version of the Safari browser that can be used on the windows machines is Safari 5. Hence we can't use the latest browser of Safari on windows machines.
-
Selenium has also deprecated SafariDriver which can be used to run the Selenium Automation scripts on Safari browser. Instead of using SafariDriver for running Selenium scripts on Safari browser, Selenium has provided 'Selenium WebDriver' extension for Safari browser. Though Selenium has provided 'Selenium WebDriver' extension for Safari browser to run the Selenium Scripts on Safari browser, this 'Selenium WebDriver' will work only on the Safari Browsers having the browser version of 10 and above.
-
So, in order to run the Selenium Automation scripts on the Safari browser, we have to use Safari 10+ browser version for installing 'Selenium WebDriver' Safari browser extension. And as the Safari 10+ browser version is no where supported by Windows machine and can only be installed on the machines having latest versions of Macintosh operating systems. Hence we can only run the Selenium Automation scripts on latest versions of Macintosh machines having Safari browser version of 10+.
-
Safari 10+ browser versions are available only for macOS Sierra. Hence in-order to run the Selenium Automation scripts, we need Safari 10+ browser, which can be installed on one and only Macintosh's macOS Sierra operating system.
Hence, we need the below System configuration and plug-ins for running the Selenium Automation scripts on safari browser: