selenium模拟鼠标拖动
# 模拟鼠标滑动,拖动到可见的元素去
element = self.driver.find_element(*select_value) # select_value = (By.XPATH,'//label[@for="p_relate_apply_id"]')
self.driver.execute_script("arguments[0].scrollIntoView();", element )
# 模拟鼠标滑动,拖动到可见的元素去
element = self.driver.find_element(*select_value) # select_value = (By.XPATH,'//label[@for="p_relate_apply_id"]')
self.driver.execute_script("arguments[0].scrollIntoView();", element )