Posts: 240
Threads: 38
Joined: Jun 2009
Reputation:
0
08-12-2009, 10:48 AM
Hi All,
I have a two windows i.e left pane and right pane and i need to drag and drop the values from left pane to right pane
Note: These values in the right and left pane are identified as a Webelement
Could you please help me in this regard?
Thanks,
Venkat.Batchu
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
08-12-2009, 07:26 PM
(This post was last modified: 08-12-2009, 07:28 PM by Saket.)
you can use DragAndDrop object of Mercury.DeviceReplay for this
Object.DragAndDrop(DragX,DragY,DropX,DropY,Button)
Sorry for the typo, Please read "DragAndDrop object of Mercury.DeviceReplay" as "DragAndDrop method of Mercury.DeviceReplay object"
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
10-26-2009, 01:52 PM
Nope...Thats not what saket meant. I pitched in because of the misunderstanding.
There is a undocumented feature in QTP called the DeviceReplay. Saket meant you to use that for drag and drop. Your usage is the inbuilt method of a webelement.
Research more on DeviceReplay and you will know about it.
Sorry to have surged ahead of you saket
..I just wanted him to be clear.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 1
Threads: 0
Joined: Dec 2010
Reputation:
0
12-20-2010, 10:22 AM
Hi All,
There are 2 Java trees from where i pick 1 element from 1 tree and other element from other tree, Then i need to drag and drop both objects into a Javatab.
I was succeeded to do in analog recording mode but since i need to use different combination of elements from 2 trees analog recording mode will not help.
I have tried to do with Mousedrag option but i always need to know to co-ordinates of the source and target which is not feasible.
So please let me know if any alternate way to succeed with drag and drop option.
Rgds,
Raj