selenium控制鼠标悬停和滑动滑块操作
from selenium import webdriver
from selenium.webdriver import ActionChains
bro = webdriver.Chrome()
# 生成action对象
action = ActionChains(bro)
# 找到要操作的元素
element = bro.find_element_by_xxx('xxxx')
# 移动鼠标到目标element并且悬停
action.move_to_element(element).perform()
# 点击并保持点击状态
action.click_and_hold(element).perform()
# 滑动操作
action.move_by_offset(x,y).perform()