That seems right. The only other thing I can think of is to break the interaction down further and add pauses between each action (do click_and_hold, move_to and release methods in ActionBuilder). And it probably makes sense to do it manually through a console, using irb or pry. Maybe someone else with lots of drag and drop experience has some other idea. I've only used it a little.
It's probably also worth trying things in different browsers in case there's some driver-specific problem. ________________________________ From: watir webdriver <[email protected]> To: [email protected] Sent: Monday, July 8, 2013 9:33 AM Subject: [wtr-general] Re: [Watir-webdriver] - Drag and drop using watir webdriver Still no luck... Implemented as below : a = @browser.span(:text => "Abandoned Basket").wd b = @browser.div(:class => "droparea ui-droppable ui-sortable").wd @browser.driver.action.drag_and_drop(a,b).perform The scenario is just passing successfully but its not meeting the expected result of dragging and dropping the element.I've checked manually by visiting the page. Thanks in-advance. On Wednesday, July 3, 2013 2:53:28 PM UTC+1, watir webdriver wrote: Hi there, > >I'm trying to drag and drop an element in webpage through the below code: > >Step def: >When(/^I drag and drop Basket rule to the position slot$/) do >@browser.span(:class => "draggable ui-draggable").drag_and_drop_ >on(@browser.div(:class => "droparea ui-droppable ui-sortable")) >end > >The scenario is passing but on the webpage its just high lighting the >draggable element.(drop is not working) > >HTML code for draggable code: ><tr> ><td> ><span class="draggable ui-draggable" full="Basket" ai d="BASKET">Basket</span> ></td> ><tr> > > >HTML code for droppable code: ><div id="0" class="droparea ui-droppable ui-sortable"> > >Anyone can help me with this issue ? > >Thanks in-advance. > > > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
