英文:
What is the setting for changing language in Safari through Selenium WebDriver?
问题
我正在尝试通过WebDriver更改Safari的默认语言。我知道在Chrome中可以这样做:
val chromeOptions = new ChromeOptions();
val prefs = new HashMap<String, String>();
prefs.put("intl.accept_languages", "fr-CA");
chromeOptions.setExperimentalOption("prefs", prefs);
如何在Safari中实现这一目标?
英文:
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?
专注分享java语言的经验与见解,让所有开发者获益!
评论