黄瓜水豚滚动到页面底部 [英] Cucumber Capybara scroll to bottom of page

查看:108
本文介绍了黄瓜水豚滚动到页面底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用我的黄瓜/水豚设置来测试无尽的滚动通过驱动浏览器和滚动到页面的底部,以确保新的内容加载。有没有办法做到这一点?

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?

推荐答案

我解决了这一点,访问'#footer'页面步骤。

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

这篇关于黄瓜水豚滚动到页面底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆