I'm trying to change the default language in Safari through WebDriver. I know this is the way in Chrome:
val chromeOptions = new ChromeOptions();
val prefs = new HashMap<String, String>();
prefs.put("intl.accept_languages", "fr-CA");
chromeOptions.setExperimentalOption("prefs", prefs);
How can this be accomplished for Safari?