Created
July 26, 2011 20:31
-
-
Save omarish/1107935 to your computer and use it in GitHub Desktop.
Use a custom firefox profile in Selenium RC2
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
#!/usr/bin/env python | |
from selenium import webdriver | |
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile | |
profile = FirefoxProfile( | |
profile_directory='/path/to/profile/directory/default/' | |
) | |
driver = webdriver.Firefox(firefox_profile=profile) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment