Xpath定位元素方式
from selenium import webdriver
driver = webdriver.Firefox()
driver.get(url)
driver.find_element_by_xpath()
鼠标事件
from selenium.webdriver.common.action_chains import ActionChains
ActionChains(driver) //用于生成模拟用户行为
perform() //执行存储行为