A very common use of the web page is to browse through the contents of a webpage. And it involves scrolling up and down a webpage, until you have reached the bottom of your webpage.
In this post, we’re going to see, how we can scroll down a webpage, to the bottom.
As per the documentation mentioned here :
window object in DOM has a
scrollTo method to scroll to any position of an opened window. The scrollHeight is a common property for all elements. The document.body.scrollHeight will give the height of the entire body of the page.
Thanks for sharing this useful knowledge. Please how can I use it to scroll a google map page to collect reviews with python selenium? e.g https://www.google.com/maps/place/Cafeemail@example.com,-80.5449067,13z/data=!4m10!1m2!2m1!1s+!3m6!1s0x882bf40ce0834e6d:0x39ecc3e2beaeaa5c!8m2!3d43.4669595!4d-80.5232248!9m1!1b1
I need to scroll down to see more reviews. Thanks
I am trying to scroll down to bottom to grafana url but its not working…could you please give some alternative way