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.
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()
The password I am entering is definitely correct. Could it be that Microsoft simply does not want remote controlled browsing sessions to attempt login?