title: Is Selenium slow, or is my code wrong?
body: <p>So I'm trying to login to Quora using Python and then scrape some stuff.</p>
  
  <p>I'm using Selenium to login to the site. Here's my code:</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  
  driver = webdriver.Firefox()
  driver.get('http://www.quora.com/')
  
  username = driver.find_element_by_name('email')
  password = driver.find_element_by_name('password')
  
  username.send_keys('email')
  password.send_keys('password')
  password.send_keys(Keys.RETURN)
  
  driver.close()
  </code></pre>
  
  <p>Now the questions:</p>
  
  <ol>
  <li><p>It took ~4 minutes to find and fill the login form, which painfully slow. Is there something I can do to speed up the process?</p></li>
  <li><p>When it did login, how do I make sure there were no errors? In other words, how do I check the response code?</p></li>
  <li><p>How do I save cookies with selenium so I can continue scraping once I login?</p></li>
  <li><p>If there is no way to make selenium faster, is there any other alternative for logging in? (Quora doesn't have an API)</p></li>
  </ol>