![]() |
|
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-3.html) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/forum-4.html) +--- Thread: Does QTP 9.0 supports drag & drop functionality check for webelement? (/thread-2964.html) |
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, 509Thanks 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, micCtrlCode: browser(obr).page(opg).webelement("innerhtml:=Industries","outerhtml:=<A>Industries</A>").dropUse upper code . Regards Madhu |