Hi,
Since I updated Safari on a MacOS to version 27.0 (20625.1.29.18.28), initializing the safari driver fails with the following error:
"Message: Could not create a session: The session timed out while connecting to a Safari instance. The following asynchronous operation timed out: Request creation of a new automation session;"
This error appears during initializing the driver with the following Python code:
"""
from selenium import webdriver
from selenium.webdriver.safari.options import Options as SafariOptions
from selenium.webdriver.safari.service import Service as SafariService
driver = webdriver.Safari(options=SafariOptions(), service=SafariService())
"""
I double checked that the "Allow remote automation and external agents" option is checked and that the safaridriver file from "/usr/bin/" folder has execution rights.
The Selenium version that I have installed is 4.49.0 and the Python version is 3.13.15.
Everything worked perfectly before updating Safari to version 27, so I assume that there is a mismatch between Safari 27 and Selenium 4.49.0.
Could this be investigated and checked if there is anything to do from the Selenium side with the next release, maybe? If not, should I instead wait for the next update of the Safari browser?
Thank you,
Bogdan Stoica