Skip to content

Instantly share code, notes, and snippets.

@readevalprint
Created May 1, 2012 22:01
Show Gist options
  • Save readevalprint/2571776 to your computer and use it in GitHub Desktop.
Save readevalprint/2571776 to your computer and use it in GitHub Desktop.
Simple Webdriver & BrowserID login example for Mozillians
#!/usr/bin/env python
# To run this make sure you have selenium and bidpom
# pip install -U selenium
# git clone git://github.com/davehunt/bidpom.git
from selenium import webdriver
from bidpom.browser_id import BrowserID
browser = webdriver.Firefox()
browser.get('http://mozillians.allizom.org')
browser.refresh()
browser.find_element_by_id('create_profile').click()
browser_id = BrowserID(browser)
browser_id.sign_in('[email protected]', '2mcstb12')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment