01-13-2010, 01:08 AM
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:
Thanks in advance....
Jyotikrushna
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