title: python how to check answer of web browser
body: <p>I need help with python...
  Do you know how I can check response of web browser after clicking button login (here: submit)?
  I want to compare html code  and return True if my login will be a successful but unfortunately I don't know how. :/ Any hint would be priceless. :)
  That's my code from selenium:</p>
  
  <pre><code>driver.find_element_by_css_selector("input.username").send_keys("margie")
  driver.find_element_by_css_selector("input.password").clear()
  driver.find_element_by_css_selector("input.password").send_keys("margie")
  driver.find_element_by_css_selector("div.btn.submit").click()
  </code></pre>
  
  <p>Can I use "if"? </p>
  
  <p>Thank you for your time guys! </p>