[PYTHON] An alternative if Selenium's bottom scroll command (window.scrollTo) doesn't work

Overview

Method

How to scroll the bottom that didn't work (at a certain site)

driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")

How it worked

#I clicked once and then page down and I was able to scroll
#PAGE if you want to scroll to the bottom_Repeat DOWN
driver.find_element_by_tag_name('body').click()
driver.find_element_by_tag_name('body').send_keys(Keys.PAGE_DOWN)    

Finally

Recommended Posts

An alternative if Selenium's bottom scroll command (window.scrollTo) doesn't work
module install if pip install doesn't work
Let's Encrypt updated! What to do if the certbot renew command doesn't work