Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test the jQuery UI slider widget with Selenium IDE?

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?

like image 815
David Thibault Avatar asked Aug 31 '09 15:08

David Thibault


1 Answers

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

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

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

like image 173
Dave Hunt Avatar answered Nov 14 '22 11:11

Dave Hunt