0

I need to scroll to the end of a facebook page so that I can load all the posts, how can I do that with selenium while the page is still loading ?

Omar Yacop
  • 73
  • 1
  • 9

1 Answers1

1

In python I would do this :

driver.execute_script("var scrollingElement = (document.scrollingElement || document.body);scrollingElement.scrollTop = scrollingElement.scrollHeight;")

this is somewhat always works for me.

cruisepandey
  • 28,520
  • 6
  • 20
  • 38