from selenium import webdriver # 导入webdriver包
import time
from selenium.webdriver.common.action_chains import ActionChains
driver=webdriver.Chrome()
driver.maximize_window() # 最大化浏览器
driver.implicitly_wait(30)
driver.get("http://oss.52studyit.net/webzdh/form.html") # 通过get()方法,打开一个url站点
#错误
# ele_sancuanzaopian=driver.find_element_by_id("zaopian")
# ele_sancuanzaopian.click()
#正确
ele_sancuanzaopian=driver.find_element_by_id("zaopian")
ActionChains(driver).click(ele_sancuanzaopian).perform()
time.sleep(5)
driver.quit() # 关闭并退出浏览器