Page 1 of 1

Drag and Drop in Silver light application

Posted: Mon Jan 13, 2014 8:49 pm
by bchandus
Hi,

I am using AUT developed in silverlight.
I have problem in drag and drop of list item.

I am using below code:

Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
Delay.Milliseconds(20000);
Ranorex.Mouse.MoveTo(600 , 400);
Delay.Milliseconds(5000);
Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);

with the above code mouse is moving but not carrying the item.

Can some one help please!!!

Thanks!!!

Re: Drag and Drop in Silver light application

Posted: Wed Jan 15, 2014 3:00 pm
by mebner
Hi,

Have you already tried to record the drag'n'drop actions?
If not, can you give it a try?

Regards,
Markus

Re: Drag and Drop in Silver light application

Posted: Thu Jan 16, 2014 10:11 pm
by Aracknid
Not sure if this will help, but I've found with drag and drop, sometimes the moveto needs to be slowed down for the AUT to recognize that it has in fact been moved. Try moveto with a delay so that it takes 1 or 2 seconds to do the move. You might notice it picks up the drag at this point.

Aracknid.