PDA

View Full Version : Drag and Drop does not work with Selenium Test



klau
3 Jul 2009, 2:23 AM
Hi all,

I try to test Ext-GWT on Selenium IDE / Core, where I have a "List to List" for selenium to test. (Drag and Drop / dnd)
(e.g. http://extjs.com/examples/dnd/listtolist.html)

I recorded tests using the following commands with Selenium IDE on Firefox 2 and Firefox 3 and Firefox 3.5, but have no luck getting items to drag and drop from list to list.
dragAndDropToObject
dragAndDrop
a) mouseDownAt , b) mouseMoveAt , c) mouseUpAtHaving the test scripts in TestRunner with highlight turned on, I can see the command has fired.

The mouseDownAt seems to click on the target object but releases straight away (mouse click not holding), same for mouseMove and dragAndDropToObject.

However, when I test the draggable example (http://extjs.com/examples/misc/draggable.html), the dragAndDropToObject successfully drag and drop widgets on screen (same for mouseDown/mouseMove/mouseUp)

Any idea please?
Thanks.
K