alert = driver.switch_to.alert alert.accept()
http://stackoverflow.com/questions/28397370/python-selenium-unexpectedalertpresentexception