-
-
Save c089/a5cbb834f9b54004de9b to your computer and use it in GitHub Desktop.
Setting the accepted language setting using ChromeDriver (tested against ChromeDriver 2.0)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HashMap<String, String> prefs = new HashMap<String, String>(); | |
prefs.put("intl.accept_languages", "de-DE,de"); | |
options.setExperimentalOptions("prefs", prefs); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try to convert this into python like so :
I can't get it to work, Chrome (Google) still the accpted language remain the same as define in Profil 1 Preferences file... Even more annoying is that if I change the accept_language attribute in the Preferences file, when I launch Chrome with chromedriver the orignal setting remain the same, in my case since my locales are in french it seems to keep fr as accept_languages...
Any idea??