To run Selenium tests in Safari on macOS, enable Safari’s remote automation permission, then create a Safari session with a current Selenium client library. Apple supplies safaridriver with macOS, so you normally do not download a separate driver. You can enable the permission in Safari under Develop > Developer Settings… > Allow remote automation, or run safaridriver --enable in Terminal. Apple’s macOS setup instructions cover both routes.
Enable Safari WebDriver
Safari’s WebDriver support is off by default. Turn on remote automation once for the macOS account that will run the tests. Use either method below; both configure Safari’s automation permission.
As an Amazon Associate I earn from qualifying purchases.
Enable it in Safari
- Open Safari.
- From the menu bar, open Develop and choose Developer Settings….
- Check Allow remote automation.
If the Develop menu is not visible, use the Terminal method instead, or consult Apple’s current instructions for locating the setting in your Safari version.
Enable it in Terminal
Run this command in Terminal:
safaridriver --enable
Apple notes that an upgrade from an earlier macOS release may require elevated privileges. If the command does not enable the setting, try:
#1 Best Overall
- AN AMAZING MAC AT A SURPRISING PRICE — With an incredibly portable and durable aluminum design, up to 16 hours of battery life,* and the A18 Pro chip, MacBook Neo is ready to go wherever school takes you.
- FOUR STUNNING COLORS. ONE DURABLE DESIGN — Choose from four beautiful colors — Silver, Blush, Citrus, or Indigo — each with a color-coordinated keyboard. And MacBook Neo is made with a durable recycled aluminum enclosure that helps it reach 60 percent recycled content by weight — the most ever in any Apple product.*
- FLY THROUGH EVERYDAY ASSIGNMENTS — Whether you’re cramming for finals, using Apple Intelligence* to summarize class notes, creating presentations, or even playing the latest Apple Arcade game,* MacBook Neo delivers the performance and AI capabilities you need to get things done.
- UP TO 16 HOURS OF BATTERY LIFE — MacBook Neo delivers all day battery life, so you can power through from early morning classes to late night study sessions without worrying about plugging in.
- A VIBRANT 13-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Neo supports 1 billion colors, so photos and videos pop and text is crisp for easy reading.
sudo safaridriver --enable
Enter your macOS administrator password if prompted. The command’s lack of visible output does not by itself indicate failure; start a session with Selenium to check that the permission is enabled.
Start a Safari session with Selenium
Install the Selenium client library for your language and use its Safari driver. Selenium’s Safari driver is installed with macOS and is ordinarily launched by the client library; the standard executable is /usr/bin/safaridriver. See the Selenium Safari browser guide for the client-library setup details.
Rank #2
- BUILT FOR COLLEGE. AND BEYOND — MacBook Air with the M5 chip packs blazing speed and powerful AI capabilities into an incredibly portable design. And with up to 18 hours of battery life,* this thin and light powerhouse is ready to take on almost any major, just about anywhere.
- TEAR THROUGH TOUGH ASSIGNMENTS — With its faster CPU and unified memory, the M5 chip delivers even more performance and fluidity across apps, making multitasking and creative workflows smooth and responsive. A powerful Neural Engine and next-generation GPU with Neural Accelerators give you a powerful platform for AI.
- MAKE QUICK WORK OF YOUR TO-DO LIST — Apple Intelligence helps you write, express yourself, and get things done effortlessly — whether it’s for school or everyday life. With groundbreaking privacy protections, it gives you peace of mind that no one else can access your data — not even Apple.*
- UP TO 18 HOURS OF BATTERY LIFE — MacBook Air delivers incredible battery life with amazing performance, so you can power through a full day of classes without worrying about plugging in.
- A BRILLIANT 13.6-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Air supports 1 billion colors, making photos and videos pop with rich contrast and sharp detail, and text appears supercrisp. So everything — from class presentations to movies to games — looks truly stunning.
The central pattern is to create a Safari WebDriver instance through the Selenium API, navigate to a page, and then close the session. Exact imports and installation steps depend on the language and Selenium version, so follow the Safari section of the current Selenium documentation for your chosen binding.
Choose the Safari build you want to test
The standard safaridriver launches the Safari version associated with the installed macOS browser. Safari Technology Preview is a separate target: it has its own driver executable inside its application bundle, and that driver launches the matching preview browser. If your client library supports selecting an explicit driver executable, point it to the Technology Preview driver when testing that build. Apple documents the association and locations in its WebKit WebDriver guide.
Rank #3
- AN AMAZING MAC AT A SURPRISING PRICE — With an incredibly portable and durable aluminum design, up to 16 hours of battery life,* and the A18 Pro chip, MacBook Neo is ready to go wherever school takes you.
- FOUR STUNNING COLORS. ONE DURABLE DESIGN — Choose from four beautiful colors — Silver, Blush, Citrus, or Indigo — each with a color-coordinated keyboard. And MacBook Neo is made with a durable recycled aluminum enclosure that helps it reach 60 percent recycled content by weight — the most ever in any Apple product.*
- FLY THROUGH EVERYDAY ASSIGNMENTS — Whether you’re cramming for finals, using Apple Intelligence* to summarize class notes, creating presentations, or even playing the latest Apple Arcade game,* MacBook Neo delivers the performance and AI capabilities you need to get things done.
- UP TO 16 HOURS OF BATTERY LIFE — MacBook Neo delivers all day battery life, so you can power through from early morning classes to late night study sessions without worrying about plugging in.
- A VIBRANT 13-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Neo supports 1 billion colors, so photos and videos pop and text is crisp for easy reading.
| Target | Driver selection | Use it when |
|---|---|---|
| Installed Safari | /usr/bin/safaridriver |
You want to test the Safari version supplied with macOS. |
| Safari Technology Preview | The separate safaridriver inside the Technology Preview application bundle; location and selection method can vary by installation and Selenium binding. |
You want preview-build coverage and will explicitly select its corresponding driver. |
Do not install or configure the former Selenium-maintained SafariDriver implementation. Apple’s WebKit guide explains that Apple’s native implementation replaced it. Use the native driver through a current Selenium client instead.
What Safari’s WebDriver session changes
Apple describes WebDriver test windows as isolated from your ordinary Safari browsing windows, settings, and preferences. Do not rely on your normal browsing session’s state or preferences being present in an automated test. See Apple’s WebDriver overview.
Rank #4
- AN AMAZING MAC AT A SURPRISING PRICE — With an incredibly portable and durable aluminum design, up to 16 hours of battery life,* and the A18 Pro chip, MacBook Neo is ready to go wherever school takes you.
- FOUR STUNNING COLORS. ONE DURABLE DESIGN — Choose from four beautiful colors — Silver, Blush, Citrus, or Indigo — each with a color-coordinated keyboard. And MacBook Neo is made with a durable recycled aluminum enclosure that helps it reach 60 percent recycled content by weight — the most ever in any Apple product.*
- FLY THROUGH EVERYDAY ASSIGNMENTS — Whether you’re cramming for finals, using Apple Intelligence* to summarize class notes, creating presentations, or even playing the latest Apple Arcade game,* MacBook Neo delivers the performance and AI capabilities you need to get things done.
- UP TO 16 HOURS OF BATTERY LIFE — MacBook Neo delivers all day battery life, so you can power through from early morning classes to late night study sessions without worrying about plugging in.
- A VIBRANT 13-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Neo supports 1 billion colors, so photos and videos pop and text is crisp for easy reading.
Troubleshoot common setup failures
- Safari says remote automation is disabled: revisit Develop > Developer Settings… > Allow remote automation, or run
safaridriver --enable. On an upgraded system, retry withsudoif needed. - The command is not found: check that macOS’s Safari driver is available at
/usr/bin/safaridriver. If targeting Safari Technology Preview, use its bundled driver rather than assuming the standard path applies. - Selenium opens the wrong browser build: select the driver associated with the intended Safari version. Standard Safari and Technology Preview use separate executables.
- An old setup guide asks for a separate legacy SafariDriver: disregard that legacy workflow and use Apple’s native WebDriver with a current Selenium client.
- The test does not share your normal Safari login or preferences: WebDriver windows are isolated by design, so make the test establish the state it needs rather than depending on an ordinary browsing window.
Or skip the browser setup
If your goal is to capture a page rather than exercise it interactively with Selenium, ScreenshotNeo returns a screenshot or PDF from one GET request; it is not a replacement for browser automation tests. For example, this cURL request saves a WebP capture:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo API documentation for request options. Before a capture, it accepts cookie/consent banners and removes 60+ known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing status. Its MCP server provides screenshot and PDF tools for AI agents. The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.
Sign up for ScreenshotNeo’s free plan: 1,000 screenshots a month, no card required.
Best Value
- FAST RUNS IN THE FAMILY — The 16-inch MacBook Pro with the M5 Pro or M5 Max chip brings next-generation speed and powerful on-device AI to personal, professional, and creative tasks. With all-day battery life, double the starting storage,* and a breathtaking Liquid Retina XDR display, it’s pro in every way.*
- BUCKLE UP — Along with a next-generation CPU, faster unified memory, and up to 2x faster SSD storage,* M5 Pro and M5 Max feature a more powerful GPU with a Neural Accelerator built into each core, delivering faster AI performance and on-device training capabilities. So you can blaze through demanding workloads at mind-bending speeds.
- BUILT FOR AI — Apple silicon, and every major component that powers it, is designed to run demanding on-device AI workloads like LLM inference and training. And Apple Intelligence helps you write, express yourself, and get things done effortlessly with groundbreaking privacy protections at every step.*
- ALL-DAY BATTERY LIFE — MacBook Pro delivers the same exceptional performance whether it’s running on battery or plugged in.*
- MACOS RUNS APPS FAST — All your go-to apps run lightning fast in macOS, including built-in apps like FaceTime and Messages. Plus, built-in virus protection and free software updates help keep your Mac running smoothly and securely.
Frequently Asked Questions
Does SafariDriver require a separate download?
No. Apple’s Safari driver is supplied with macOS; Selenium ordinarily launches it through the client library.
Can Selenium test Safari Technology Preview?
Yes. Use the separate driver bundled with Technology Preview and configure the client library to launch that matching browser build.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesIs ScreenshotNeo a substitute for Selenium Safari testing?
No. ScreenshotNeo captures a page as an image or PDF; Selenium is the appropriate choice for interactive browser tests.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




