I am using python selenium to scroll a webpage, i am trying to get to the bottom of the page by clicking on the scroll element but it's returning this error: MoveTargetOutOfBoundsException: move target out of bounds
My code so far:
from selenium.webdriver.common.action_chains import ActionChains
actions = ActionChains(driver)
scrollbar_needed = driver.find_element_by_xpath("//div[@class='antiscroll-scrollbar antiscroll-scrollbar-vertical antiscroll-scrollbar-shown']")
actions.click_and_hold(scrollbar_needed).move_by_offset(0,5000).release().perform()
Is there another way to scroll using the path of "scrollbar_needed"?