Created
May 1, 2012 22:01
-
-
Save readevalprint/2571776 to your computer and use it in GitHub Desktop.
Simple Webdriver & BrowserID login example for Mozillians
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 | |
# 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