一.设置等待 #coding=utf-8 from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from time import sleep driver=webdriver.Chrome() driver.get('http://www.baidu.com') #添加智能等待 driver.implicitly_wait(3) driver.find_element_by_i…