title: Logging into Microsoft account using Selenium
body: <p>I am trying to use selenium to log into my Microsoft account. The code below causes the site to return an error message saying something went wrong during login.</p>
  
  <pre><code>from selenium import webdriver
  import time
  
  browser = webdriver.Firefox()
  browser.get('https://login.live.com')
  
  #locating email field and entering my email
  elem = browser.find_element_by_id("i0116")
  elem.send_keys("myEmailAddress")
  
  #locating password field and entering my password
  elem2 = browser.find_element_by_id("i0118")
  elem2.send_keys("myPassword")
  
  
  elem.submit()
  </code></pre>
  
  <p>The password I am entering is definitely correct. Could it be that Microsoft simply does not want remote controlled browsing sessions to attempt login?</p>