I have this code to download several files from URL. It works partially because only downloads the first files that are visible in page. The issue it seems to be that when each file is downloaded the page is not scrolling down automatically.
I receive this error:
Element <a abc-id="0" href="#" class="todown" nc="0">Download</a>
is not clickable at point (1474, 639). Other element would receive
the click: <div id="footer">...</div>
How would be to add an automatic scroll down in my script below?
from time import sleep
from selenium import webdriver
driver = webdriver.Chrome("C:\webdrivers\chromedriver.exe")
driver.get ("http://www.examplesite.com/")
time.sleep(3)
tr = driver.find_elements_by_xpath("//*[@id='dwn']/div/table[1]/tbody[1]/tr")
for i in range(1,len(tr)):
driver.find_element_by_xpath("//*[@id='dwn']/div/table[1]/tbody[1]/tr["+str(i)+"]/td[3]/a").click()
Thanks for any help.