2

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?

1

1 Answer 1

12

Executing the script

driver.execute_script("window.scrollTo(0, document.body.scrollHeight)")

will scroll the window to the bottom of the page.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.