Search code examples
cucumbercapybara

Cucumber Capybara scroll to bottom of page


I'd like to use my Cucumber/Capybara setup to test endless scroll by driving a browser and scrolling to the bottom of the page to ensure that the new content is loaded. Is there a way to do this?


Solution

  • I solved this with visit '#footer' inside a "scroll to the bottom of the page" step.