Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I have a test where I'd like to scroll to the end of the page, in order to assert something. How can I implement this using selenium and ruby? Is there something I can add to this "particular" test where I can scroll to the bottom?
location_once_scrolled_into_view
Executing the script
driver.execute_script("window.scrollTo(0, document.body.scrollHeight)")
will scroll the window to the bottom of the page.
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
location_once_scrolled_into_viewas mentioned stackoverflow.com/questions/23160999/… , stackoverflow.com/questions/7327858/how-to-scroll-with-selenium , github.com/SeleniumHQ/selenium/wiki/Ruby-Bindings