鼠标操作,需要导入actionchains方法
from selinuim.webdriver import ActionChains
driver = webdriver.chrome()
driver.get('url')
action = ActionChains(driver)
action.move_to_element(set_ele)
action.perform()
ActionChains(driver).move_to_element(set_ele).perform()

鼠标操作,需要导入actionchains方法
from selinuim.webdriver import ActionChains
driver = webdriver.chrome()
driver.get('url')
action = ActionChains(driver)
action.move_to_element(set_ele)
action.perform()
ActionChains(driver).move_to_element(set_ele).perform()