Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Cucumber/Capybara のセットアップを使用して、ブラウザーを駆動し、ページの下部までスクロールして新しいコンテンツが読み込まれることを確認することで、エンドレス スクロールをテストしたいと考えています。これを行う方法はありますか?
これを実現するには、javascript を使用できます。
page.execute_script "window.scrollBy(0,10000)"
visit '#footer'「ページの一番下までスクロール」ステップでこれを解決しました。
visit '#footer'