There seems to be a problem using Watir/watir-webdriver to drag items within a 
ui-sortable class for automated tests. We have several sortable classes on a 
page, and we can move items within or between these classes. I can successfully 
automate the test to move an item between sortable classes, but not within a 
sortable class.

I can successfully pickup the element (using 
browser.driver.action.click_and_hold(element)), but the problem comes in 
dropping the element after moving it. When I drop the element (using 
element.fire_event("onmouseup")), it's just dropping back into the old place.

I've tried moving the element by an amount, using 
@browser.driver.action.move_by(400, 0) and also tried moving to below another 
child element of the class (@browser.driver.action.move_to(element2).

Neither work, and when I look at the DOM, the "placeholder" class for the class 
"ui-sortable-helper" hasn't moved.

I have got an example page in dropbox dropbox.com/sh/s0z7lpgbx5eh0qo/0XxiaE1hHH
If you look at the example page, the problem comes when dragging item 1 below 
item 3. 

I posted a question on 
http://stackoverflow.com/questions/15151294/advice-as-to-how-to-use-watir-to-drag-items-within-a-sortable-class-for-automate
 and was advised to post a new issue here.  

---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/188
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to