3

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?

user786045
  • 2,498
  • 4
  • 22
  • 18

0 Answers0