1from selenium.webdriver.common.action_chains import ActionChains
2
3element = driver.find_element_by_id("my-id")
4
5actions = ActionChains(driver)
6actions.move_to_element(element).perform()
1 for i in range(20): # adjust integer value for need
2 # you can change right side number for scroll convenience or destination
3 driver.execute_script("window.scrollBy(0, 250)")
4 # you can change time integer to float or remove
5 time.sleep(1)
6