Micro Focus QTP (UFT) Forums
Does QTP 9.0 supports drag & drop functionality check for webelement? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Does QTP 9.0 supports drag & drop functionality check for webelement? (/Thread-Does-QTP-9-0-supports-drag-drop-functionality-check-for-webelement)



Does QTP 9.0 supports drag & drop functionality check for webelement? - jyotikrushna - 01-13-2010

Hi

I tried to develop a script to check the drag and drop functionality for webelement through QTP 9.0, but it shows error as "drag methos isn't supported...."

Here is the code:
Code:
Dim obr,opg,oele
Set obr=description.Create
obr("title").value="My Journal - WSJ.com"
Set opg=description.Create
opg("title").value="My Journal - WSJ.com"
Set oele=description.Create
oele("innerhtml").value="reorder collections"
oele("outerhtml").value="<DIV class=sort>reorder collections</DIV>"
browser(obr).page(opg).webelement(oele).Click
browser(obr).page(opg).webelement("innerhtml:=Industries","outerhtml:=<A>Industries</A>").drag
browser(obr).page(opg).webelement("innerhtml:=Industries","outerhtml:=<A>Industries</A>").drop 163, 509


Thanks in advance....
Jyotikrushna


RE: Does QTP 9.0 supports drag & drop functionality check for webelement? - 1981.madhu@gmail.com - 01-13-2010

Code:
browser(obr).page(opg).webelement("innerhtml:=Industries","outerhtml:=<A>Industries</A>").drag Drag , micNoCoordinate, micNoCoordinate, micCtrl



Code:
browser(obr).page(opg).webelement("innerhtml:=Industries","outerhtml:=<A>Industries</A>").drop


Use upper code .

Regards

Madhu