Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test a JQuery UI Sortable widget using Selenium?

We have a sortable list using JQuery UI Sortable that we are trying to automate using Selenium.

It looks like the dragAndDrop function should work, but when we call it, the UI does not change. However if we look at the DOM with firebug, we see that the order of the list elements DID change. It seems it's just the UI that does not refresh.

Any idea how to get it working?

like image 729
David Thibault Avatar asked Nov 16 '10 14:11

David Thibault


1 Answers

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)

like image 161
adam goucher Avatar answered Sep 22 '22 20:09

adam goucher