Selenium - AJAX 对话框 - 如何在其中滚动?
我正在使用 Selenium IDE 来测试 Web 应用程序。一个页面创建一个简单的 jQuery 对话框,其中包含一些额外的内容。对话框具有固定的高度,并且经常需要垂直向下滚动以显示额外的内容。
无论如何,有没有办法让 Selenium 滚动此对话框,以便查看某个元素? (滚动到对话框底部也是一种解决方案)
我正在使用 Selenium IDE 1.0.10
尽管 selenium 测试在没有滚动的情况下仍然可以工作,但我们会在构建过程中自动运行测试。如果出现错误,我们会截屏以帮助调试。如果测试可以滚动,那么这将使屏幕截图更有价值。
I am using Selenium IDE to test a web application. One page creates a simple jQuery Dialog with some extra content in there. The dialog has a fixed height and frequently there is a need to scroll down vertically to show the extra content.
Is there anyway to get Selenium to scroll this dialog box so that a certain element is in view? (scrolling to the bottom of the dialog would also be a solution)
I am using Selenium IDE 1.0.10
Although the selenium test still works without the scrolling, we automatically run the tests as part of our build process. If there's an error we take a screen shot, to aid debugging. If the test could scroll then this would make the screenshot much more valuable.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您已经尝试过类似的方法了吗?:
Have you tried out something along these lines already?: