Created
November 10, 2013 16:40
-
-
Save omaciel/7400482 to your computer and use it in GitHub Desktop.
Starts up Firefox using a language locale
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
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