Are you using watir-classic or watir-webdriver? At least in watir-classic 
(not sure about watir-webdriver) there is currently an issue when the 
element you want to drag or the element you want to drop on are not 
currently visible on the screen. This will be hopefully resolved in the 
future.

Jarmo

On Tuesday, July 3, 2012 4:53:25 PM UTC+3, Abe Heward wrote:
>
> Ah! I can see the drag-and-drop happening, so it looks like I just need to 
> figure out exactly what element I need to drop it onto.
>
> On Monday, July 2, 2012 2:43:57 PM UTC-7, Abe Heward wrote:
>>
>> I have this element on a page:
>>
>> <a title="Insert text block" data-element-type="htmlblock" 
>> class="inserterbar_widget_draggable inserterbar_text_widget 
>> inserterbar_standard_icon ui-draggable" tabindex="0" href="#"></a>
>>
>> I want to drag it onto this element, on the same page:
>>
>> <div class="contentauthoring_cell_content ui-sortable" style="height: 
>> 16px; overflow: auto;"></div>
>>
>> So, I define a couple elements:
>>
>> linkypoo = b.link(:title=>"Insert text block")
>> divvypoo = b.div(:class=>"contentauthoring_cell_content ui-sortable")
>>
>> Then I do the drag-and-drop, like this:
>>
>> linkypoo.drag_and_drop_on(divvypoo)
>>
>> The script runs without error, but the drag and drop is not happening.
>>
>> Without an error being thrown, I have no idea how to debug this problem.
>>
>> I've tried using different parent/child elements around these, but it's 
>> always the same thing: No error, but no dragging and dropping, either.
>>
>> Help?
>>
>

-- 
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]

Reply via email to