标签:rom utf-8 ext src end class sleep use find
实现-百度登录浮层-输入登录用户名
#! /usr/bin/env python #coding=utf-8 ‘‘‘ 百度首页-登录浮层 ‘‘‘ from selenium import webdriver import time driver = webdriver.Firefox() driver.get("https://www.baidu.com/") time.sleep(3) driver.find_element_by_link_text("登录").click() driver.find_element_by_id("TANGRAM__PSP_10__userName").send_keys("会跑的熊") time.sleep(3) driver.quit()
结果:
标签:rom utf-8 ext src end class sleep use find
原文地址:http://www.cnblogs.com/R-bear/p/7468611.html