python selenium(2)

from selenium import webdriver
from time import sleep
bro = webdriver.Chrome()
bro.get('https://mail.qq.com/')
sleep(1)
bro.switch_to_frame('login_frame')
sleep(1)
bro.find_element_by_id('switcher_plogin').click()
sleep(1)
passname=bro.find_element_by_id('u').send_keys('370546812')
sleep(1)
password=bro.find_element_by_id('p').send_keys('mj18291812330.')
sleep(1)
bro.find_element_by_id('login_button').click()
sleep(5)
bro.close()

上一篇:selenium(1)


下一篇:javascript – 你应该在RequireJS上使用IIFE吗?