Skip to content

Instantly share code, notes, and snippets.

View cgoodale's full-sized avatar

Cameron Goodale cgoodale

View GitHub Profile
@leostera
leostera / gist:3535568
Created August 30, 2012 17:58
Selenium WebDriver Python Bindings and Facebook Login
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
usr = ""
pwd = ""
driver = webdriver.Firefox()
# or you can use Chrome(executable_path="/usr/bin/chromedriver")
driver.get("http://www.facebook.org")
assert "Facebook" in driver.title