赞
踩
from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get('https://mail.qq.com/')
driver.find_element_by_link_text('基本版').click()#找到相应元素后点击
driver.find_element_by_xpath('//*[@id="remember"]').click()#取消自动登录
driver.find_element_by_xpath('//*[@id="u"]').clear()#清除输入框中已有文字
driver.find_element_by_xpath('//*[@id="u"]').send_keys('用户名')
driver.find_element_by_xpath('//*[@id="p"]').clear()
driver.find_element_by_xpath('//*[@id="p"]').send_keys('密码')
driver.find_element_by_xpath('//*[@id="go"]').click()
driver.quit()
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。