I'm unable to get Katalon to work with Safari on MacOS Sonoma 14.7

I cannot get Katalon Studio to open Safari on MacOS Sonoma 14.7.
I have run sudo safaridriver --enable
“Allow remote automation” is checked on the Developer Tab tab in Safari settings.
Everything I have found says it should work, but I always get the error message below:

=============== ROOT CAUSE =====================

Caused by: org.openqa.selenium.WebDriverException: The driver server has unexpectedly died!

For trouble shooting, please visit: https://docs.katalon.com/katalon-studio/docs/troubleshooting.html

================================================

11-22-2024 05:07:13 PM Test Cases/Web/Player/Podcasts/podcast_add_to_queue

Elapsed time: 20.593s

Reason:

com.kms.katalon.core.exception.StepFailedException: Unable to open browser with url: ‘’

Does anyone know if this is Katalon problem, or a Safari (or Sonoma 14.7) problem, or possibly some settings locked down by corporate IT?

Thank you in advance,
Nathaniel

1 Like

You need to have the same WebDriver for Katalon as you have for your browser. I don’t see Safari as an option in my version of Katalon (main menu Tools > Update WebDriver), but if you have it, can you try to update the WebDriver? Otherwise, go to a web site that allows you to download a version of the WebDriver that matches your browser’s version for your operating system. Then, install the WebDriver “exe” in the “drivers” folder:
Katalon_Studio_Windows_64\configuration\resources\drivers

Otherwise, if we can get @kazurayam attention, he works on a Mac also, so he might have a better idea.

I don’t use Safari usually. So I am not sure.

I have

  • macOS Sonoma 14.7.1
  • Safari 18.1.1
  • Katalon Studio 10.0

In a Katalon project on my machine, I executed the following Test Case specifying to use Safari.

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

WebUI.openBrowser("https://www.google.com/")
WebUI.delay(3)
WebUI.closeBrowser()

This worked just fine.

I wanted to check the version of the safaridriver executable. In the Terminal, I did

$ cd /Applications/Katalon\ Studio.app/Contents/Eclipse/configuration/resources/drivers/safaridriver/
:/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/drivers/safaridriver
$ ls -la
total 472
drwxr-xr-x@ 4 kazurayam  admin     128 10 30 15:05 .
drwxr-xr-x@ 6 kazurayam  admin     192 10 30 15:05 ..
-rwxr-xr-x@ 1 kazurayam  admin  234735 10 30 15:05 SafariDriver.safariextz
-rwxr-xr-x@ 1 kazurayam  admin    3222 10 30 15:05 installWebDriver.scpt

I could not find the binary executable of safaridriver there. I got puzzled.

I don’t know from which path Katalon Studio loads the safaridriver. I don’t know how to find it.

I just tried this:

$ cd
:~
$ type safaridriver
safaridriver is /System/Cryptexes/App/usr/bin/safaridriver
$ cd /System/Cryptexes/App/usr/bin/
:/System/Cryptexes/App/usr/bin
$ ./safaridriver --version
Included with Safari 18.1.1 (19619.2.8.111.7)

What is /System/Cryptexes/App/usr/bin/safaridriver ? I am pretty sure that I’ve never done anything to create this myself.

I searched and found the following Stackoverflow thread:

Where is it coming from?
Is it safe to keep?
Is it okay to remove from PATH?

The /System/Cryptexes directories are part of macOS security. Mostly Safari and a few other features use it.
So it came from Apple, it is safe to keep

That’s all I could find out.

@brueninn

Please check what you have on your Mac. If you find anything different from my machine, that’s could possibly be the reason of your issue

@brueninn

Why do you use Safari at all?

Try updating your driver manually and check