from selenium import webdriver
driver = webdriver.Safari(executable_path='/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver')
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.safari.SafariDriver;
public class test {
public static void main(String[] args) {
WebDriver driver= new SafariDriver();
}
}