from selenium import webdriver
import time
from selenium.webdriver.common.action_chains import ActionChains
driver=webdriver.Chrome()
driver.get('https://kyfw.12306.cn/otn/resources/login.html')
driver.maximize_window()
huoqu=driver.find_element_by_xpath('//input[@placeholder=" user name / mailbox / cell-phone number "]').send_keys(")
huoqu=driver.find_element_by_xpath('//input[@placeholder=" password "and @aria-label=" Please input a password "]').send_keys(")
time.sleep(3)
driver.find_element_by_xpath('//a[@class="btn btn-primary form-block"]').click()
sli_ele = driver.find_element_by_xpath('//span[@id="nc_1_n1z" and @class="nc_iconfont btn_slide"]').click()
time.sleep(3)
action = ActionChains(driver)
action.click_and_hold(sli_ele)
action.move_by_offset(0,300)
action.release()
action.perform()
driver.quit()