Although you can use the drag_to command, the better command to use is
drag_on_to:
@list1.item_views[3].select
@list2.item_views[4].select_add
@list1.item_views[4].drag_on_to @list2
If you'd like to see examples of how to drag and drop list items,
please be sure to see the Lebowski example code. Specially, refer to
the foundation demo code here:
https://github.com/FrozenCanuck/Lebowski/tree/master/examples/foundation/spec/demos
To run the examples, go to examples/foundation/app and run sc-server.
If you open up Firefox (or whatever browser), navigate to
http://localhost:4020/sc_controls. The SC controls app shows all the
controls Lebowski currently has proxies for. To run Lebowski code
against the app, go to examples/foundation/spec/demos/ and run the
following:
lebowski-spec run_specs.rb
I'm currently working on fleshing out all the spec files, but for now
you can see specs for things like the SC.ListView, SC.PalettePane,
SC.WebView, and so on. The following spec demonstrates how to drag one
or more list items on to another list:
demos/specs/views/list_view/drag_selected_items_to_another_list.rb
Mike