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 ?
Asked
Active
Viewed 68 times
1 Answers
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
- 26,802
- 6
- 16
- 37
-
but I should replace scrollTop with Bottom in my case – Omar Yacop Aug 15 '21 at 09:02