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()
相关文章
- 04-12python - 代码练习 - 差异备份/同步更新
- 04-12selenium(1)
- 04-12Python学习:11.Python装饰器讲解(二)
- 04-12初探selenium(1)
- 04-12python学习笔记之八:迭代器和生成器
- 04-12selenium模块的初步了解
- 04-12python selenium(2)
- 04-12python内存回收的问题
- 04-12Python中pass、continue、break、exit()的区别
- 04-12Python学习之路8☞迭代器协议和生成器