Start safari with extension using safariDriver in selenium

Viewed 3144

I want to start my browser with my extensions. In chrome I can use the chromeOptions as in code sample below. Firefox works in a similar way.

ChromeOptions options = new ChromeOptions();
options.addExtensions(new File("/path/to/extension.crx"));

However in Safari there is no addExtensions method. What is the correct way to do this with Safari?

4 Answers
Related