Can you show me the way to use selenium
in ruby to scroll down to bottom of page? I read this
element = driver.find_element(:xpath, "//div[@class='footer small']")
element.location_once_scrolled_into_view
but in this link, i can't find any element. Can you show me the way without element like that found. Thank you!
When I looked at the page, I did not see a div with class footer. This might be why you cannot find the element.
For me, the last visible element appears to be the wallpapers - ie div with class pic. You can get the last picture and scroll to it using the following. Note that we find all of the pictures and then take the last one in the collection.
After you scroll to the last wallpaper, you will want to wait for the page to finish loading. For example, the following will wait until the image count increases: