Drag and Drop support

Class library usage, coding and language questions.
balajichandan
Posts: 24
Joined: Tue Apr 14, 2009 12:29 pm

Drag and Drop support

Post by balajichandan » Mon Dec 14, 2009 9:54 am

Hi,
Does Ranorex 2.1.3 and 1.5 versions support Drag and drop functionality in Outlook 2003 and Outlook 2007

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 and Drop support

Post by Support Team » Mon Dec 14, 2009 1:39 pm

Ranorex 2.X as well as Ranorex 1.5 support drag & drop operations in every application, consequently also in Outlook 2003/2007.

You can easily check that by recording a drag & drop operation with Ranorex Recorder. The recorder should replay the operation just fine and should also generated code for you.

Regards,
Alex
Ranorex Support Team

shrutibhambri
Posts: 2
Joined: Fri Feb 18, 2011 10:27 am

Re: Drag and Drop support

Post by shrutibhambri » Mon Feb 21, 2011 7:08 am

I'm trying to Drag and Drop an email from Outlook 2010 inbox , to another Outlook folder.
But the item is not getting moved to the destination.
Strangely , if I move the mouse a bit(manually) when the code is executing, the action completes successfully. :?
Even the recorder shows the same problem.

Below is the snippet

Code: Select all

FormMicrosoftOutlook.Element4704.Click("X;Y");
FormMicrosoftOutlook.Element4704.MoveTo("X;Y");
Mouse.ButtonDown(MouseButtons.Left);
Delay.Milliseconds(6430);
Mouse.MoveTo(trNode.Element);
Mouse.ButtonUp(MouseButtons.Left);

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 and Drop support

Post by Support Team » Mon Feb 21, 2011 2:27 pm

Hi,

you can try to automate your application using our GDI plug-in.
You can find more information about this plug-in on following link:
Automation of Legacy Applications with the GDI Capture Plug-In

Regards,
Tobias
Support Team

shrutibhambri
Posts: 2
Joined: Fri Feb 18, 2011 10:27 am

Re: Drag and Drop support

Post by shrutibhambri » Tue Feb 22, 2011 11:54 am

I have Ranorex 2.1.2 , but GDI capture works only with works with version 2.3.4 and higher.

Surely, I did try GDI first with 2.1.2 (just in case I get lucky) – Did not work :(

Then I downloaded Ranorex trial version 2.3.5 , added the GDI pluggin.
But Outlook 2010 crashes when I try to use Ranorex Spy or recorder on the same.

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 and Drop support

Post by Support Team » Wed Feb 23, 2011 11:29 am

Hi,

can you provide us a detailed error description?
What was the exact error message popping up?
Have a look at Microsoft Event Viewer to get more information about the crash and post it here.
Are there any error messages or warnings in your report?

Regards,
Tobias
Support Team