Skip to content

Instantly share code, notes, and snippets.

@omaciel
Created November 11, 2013 18:05
Show Gist options
  • Save omaciel/7417508 to your computer and use it in GitHub Desktop.
Save omaciel/7417508 to your computer and use it in GitHub Desktop.
Starts up Google Chrome using a language locale.
from selenium import webdriver
capabilities = webdriver.chrome.options.DesiredCapabilities.CHROME
capabilities["intl.accept_languages"] = "fr"
options = webdriver.chrome.options.Options()
options.add_experimental_option("intl.accept_languages", "fr")
driver = webdriver.Chrome(desired_capabilities=capabilities)
driver = webdriver.Chrome(chrome_options=options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment