Skip to content

Instantly share code, notes, and snippets.

@omarish
Created July 26, 2011 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omarish/1107935 to your computer and use it in GitHub Desktop.
Save omarish/1107935 to your computer and use it in GitHub Desktop.
Use a custom firefox profile in Selenium RC2
#!/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