import time
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('https://mail.qq.com/mail/')
time.sleep(3)
browser.find_element_by_id("rcmloginuser").send_keys("username")
browser.find_element_by_id("rcmloginpwd").send_keys("password")
browser.find_element_by_xpath("//*[@id=\"login-form\"]/div[1]/form/p/input").click()
browser.close()