如何使用Selenium IDE测试jQuery UI滑块小部件? [英] How to test the jQuery UI slider widget with Selenium IDE?

查看:79
本文介绍了如何使用Selenium IDE测试jQuery UI滑块小部件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在Web应用程序中使用 jQuery UI滑块小部件,并且我们希望自动化测试使用 Selenium IDE 的用户界面.我们找不到用selenium命令移动滑块的方法.能做到吗?

We are using the jQuery UI slider widget in our web application and we want to automate testing of the UI with selenium IDE. We can't find a way to move the slider with selenium's commands. Can it be done?

推荐答案

您可以使用dragAndDrop命令移动滑块.以下对我有用:

You can use the dragAndDrop command to move the slider. The following worked for me:

dragAndDrop | css=.ui-slider-handle | +100,0

这会将滑块移动到其当前位置的右侧100个像素.

This moves the slider 100 pixels to the right of its current position.

这篇关于如何使用Selenium IDE测试jQuery UI滑块小部件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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