我正在尝试使用selenium登录我的Microsoft帐户。下面的代码会导致站点返回一条错误消息,说明在登录过程中出错。在
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()
我输入的密码肯定是正确的。难道微软只是不想让远程控制的浏览会话尝试登录吗?在
我想你应该等一下,因为田地不会马上出现。以下几点对我有用:
相关问题 更多 >
编程相关推荐