Home / Companies / TestMu AI / Blog / Post Details
Content Deep Dive

Test Automation on Safari Browser with Safari Driver and Selenium

Blog post from TestMu AI

Post Details
Company
Date Published
Author
Himanshu Sheth
Word Count
2,486
Language
English
Hacker News Points
-
Summary

Safari, the second most popular browser globally, holds a significant market share due to its default presence on Apple devices, making it essential for developers to optimize websites for Safari. Recent Safari versions come with a built-in safaridriver, eliminating the need for external WebDriver extensions, which were necessary for earlier versions. This driver supports the WebDriver protocol and is maintained by Apple's web developer team, allowing seamless integration with Selenium for automated testing on macOS. However, the WebDriver support needs to be manually enabled in the browser settings. While the safaridriver provides features like isolated automation windows and Web Inspector for debugging, issues such as the non-functioning click event in local macOS environments have been noted, which do not occur when using cloud-based Selenium Grids like LambdaTest. Despite its straightforward setup, the Safari driver on macOS may require additional configurations for effective test automation.