How to test a JQuery UI Sortable widget using Selenium? How to test a JQuery UI Sortable widget using Selenium? selenium selenium

How to test a JQuery UI Sortable widget using Selenium?


Try dragAndDropToObject. I was just able to move things around using Se-IDE (though I suspect Se-RC would work as well).

dragAndDropToObject | css=div[class=demo] > ul > li:nth(2) | css=div[class=demo] > ul > li:nth(5)


No solution we could find worked, so we simply created helper javascript functions that moved the html elements around using jQuery. It worked for our case but it feels dirty!


I have developed a JQuery plugin to solve this problem, check out jquery.simulate.drag-sortable.js which includes a plugin along with a suite of tests.

Hope you find this useful! Feedback is welcome.

Matt