Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to perform drag and drop actions in qtp
#1
Not Solved
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
Reply
#2
Not Solved
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"

Reply
#3
Not Solved
Thanks saket ,
with your logic i have implmented as like this

Code:
Browser("xxxxxxx").Page("xxxxxxxx").Frame("main").WebElement("qqqqqqqq").Drag 350,376
Browser("xxxxxxxxx").Page("xxxxxxxxxx").Frame("main").WebElement("qqqqqqqqqqq").Drop 105,376


Thanks alot man
Reply
#4
Not Solved
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 Wink..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.
Reply
#5
Not Solved
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

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to perform operations on objects under WinObject in .net app ramakant 0 1,795 11-10-2015, 07:56 PM
Last Post: ramakant
  Unable to perform click operation on MDI menu/sub menu (Infragistics) with UFT 12 Mahen1108 0 3,284 06-17-2015, 05:29 PM
Last Post: Mahen1108
  Not Identified Drop Down Field using QTP 11.52 sunkumaranr 0 2,249 09-25-2014, 01:12 PM
Last Post: sunkumaranr
  What are the types of actions in QTP? ritugoyal 5 16,403 07-29-2013, 10:39 AM
Last Post: sravan3
  create drop Down list or menu in qtp abansal 0 3,705 09-07-2012, 05:36 PM
Last Post: abansal

Forum Jump:


Users browsing this thread: 1 Guest(s)