Page 1 of 1

How to perform Drag and Drop operation

Posted: Mon Jun 08, 2009 4:05 pm
by kucerm

I cannot find how to perform a Drag 'n Drop operation on "Ranorex.Adapter" component. Is there any possibility to do this?
I'm able to do only single click

Code: Select all

private static void SingleClick(Ranorex.Adapter graph, int x, int y) {
graph.Click(new Location(x,y));
Thank you for any help,


Posted: Mon Jun 08, 2009 4:29 pm
by Support Team
You can do drag and drop operations like this:

- Mouse.MoveTo(yourSourceElement, [location in your source element])
- Mouse.ButtonDown(MouseButtons.Left)
- Mouse.MoveTo(yourTargetElement, [location in your targetelement])
- Mouse.ButtonUp(MouseButtons.Left)

Ranorex Team

Posted: Tue Jun 09, 2009 7:15 am
by kucerm
Thank you very much for help. This led to success :-)