I'm trying to scroll through a PDF with Selenium but It doesn't appear to be working.
The code I'm working with is a little in depth but here's the crucial bits.
driver = webdriver.Firefox()
driver.maximize_window()
driver.get("http://scop-qb.org/wp-content/uploads/SCOP-B-Round-2.pdf")
for rectangle in rectangles:
if not previous is None:
driver.execute_script("window.scrollTo({0}, {1})".format(rectangle[0], rectangle[1]))
I've been searching for a solution all night, if anyone could help that'd be great.