Drag a cell from one table and drop it into another

Ask general questions here.
Anbu
Posts: 15
Joined: Tue Feb 14, 2012 10:28 am

Drag a cell from one table and drop it into another

Post by Anbu » Tue Feb 14, 2012 10:49 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Drag a cell from one table and drop it into another

Post by Support Team » Tue Feb 14, 2012 1:14 pm

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

Anbu
Posts: 15
Joined: Tue Feb 14, 2012 10:28 am

Re: Drag a cell from one table and drop it into another

Post by Anbu » Tue Feb 14, 2012 1:25 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Drag a cell from one table and drop it into another

Post by Support Team » Tue Feb 14, 2012 2:01 pm

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
You do not have the required permissions to view the files attached to this post.