Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does QTP 9.0 supports drag & drop functionality check for webelement?
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
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
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation WebElement("WebElement").Click is not working sia sharma 7 24,041 09-28-2016, 08:58 PM
Last Post: supputuri
  QTP not selecting appropriate webelement from the webtable..Need Solution satishkumarm 11 21,808 03-23-2016, 12:47 PM
Last Post: Swetha_Bayya
  Drag and drop issue excellentpawan123 0 2,761 01-13-2015, 05:04 PM
Last Post: excellentpawan123
  Drag Drop from one MSFlexGrid to another MSFlexGrid bstalsb1 0 1,957 01-13-2015, 12:14 AM
Last Post: bstalsb1
  Drop down list class is a link thotamurali 2 4,232 08-22-2014, 05:48 PM
Last Post: thotamurali

Forum Jump:


Users browsing this thread: 1 Guest(s)