Skip to content

Instantly share code, notes, and snippets.

@omaciel
Created November 10, 2013 16:40
Show Gist options
  • Save omaciel/7400482 to your computer and use it in GitHub Desktop.
Save omaciel/7400482 to your computer and use it in GitHub Desktop.
Starts up Firefox using a language locale
from selenium import webdriver
profile = webdriver.firefox.firefox_profile.FirefoxProfile()
profile.set_preference("intl.accept_languages", "fr")
browser = webdriver.Firefox(profile)
browser.get("http://google.com")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment