What is the setting for changing language in Safari through Selenium WebDriver?

Viewed 172

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?

0 Answers
Related