Page 1 of 1
Drag a cell from one table and drop it into another
Posted: Tue Feb 14, 2012 10:49 am
by Anbu
Hi All,
We are currently using Ranorex tool to perform UAT for our application. As part of our testing, we need to drag a cell from one table and drop it into another. We have been trying to perform this using user code(VB.NET) now. It would be great if someone/support team could share us their ideas/workaround.
Thank you
Anbu K
Re: Drag a cell from one table and drop it into another
Posted: Tue Feb 14, 2012 1:14 pm
by Support Team
Hi!
You can use the recorder to record this action.
What the recorder will create are 2 actions.
- - Mouse Down Event on the element you want to drag
- Mouse Up Event on the element where you want to drop the element.
Regards,
Martin
Ranorex Support Team
Re: Drag a cell from one table and drop it into another
Posted: Tue Feb 14, 2012 1:25 pm
by Anbu
Thanks Martin for your quick response.
Recording is not working as expected in all the times.
I have tried that option too but the problem i faced was dynamically i want to drag and drop the items in one table to another table.
It would be best if you can send a piece of usercode to do drag and drop during runtime.
Re: Drag a cell from one table and drop it into another
Posted: Tue Feb 14, 2012 2:01 pm
by Support Team
Hi,
I have attached a solution where I recorded Drag&Drop in an example.
To see the generated code in the background, please open the Recording1.cs File.
ViewCode.png
Regards,
Martin
Ranorex Support Team