Skip to content

Instantly share code, notes, and snippets.

@davehunt
Created October 14, 2011 15:47
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 davehunt/1287466 to your computer and use it in GitHub Desktop.
Save davehunt/1287466 to your computer and use it in GitHub Desktop.
from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
driver = webdriver.Firefox(firefox_binary=FirefoxBinary('/Applications/Firefox 7.app/Contents/MacOS/firefox-bin'))
driver.get('http://input.mozilla.com/')
driver.find_element_by_id('show-custom-date').click()
driver.find_element_by_id('id_date_start').click() # should pop up a datepicker
from selenium import webdriver
driver = webdriver.Firefox()
driver.get('http://input.mozilla.com/')
driver.find_element_by_id('show-custom-date').click()
driver.find_element_by_id('id_date_start').click() # should pop up a datepicker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment