Hi,
We are trying to drag all the items from SwfList to SwfListView, howvever if we place an break point then it will drag all the items and drop it into the SwfListView.
But if we run it through QTp it just selects the item and does not perform the drag drop. After Sometime QTP closes. Can you please suggest us the solution for this.
Please find the code below:
SwfWindow("R2D2 - Result Reconciliation").SwfWindow("Report editor").SwfList("listBoxFamilies").Activate Act_FieldName
SwfWindow("R2D2 - Result Reconciliation").SwfWindow("Report editor").SwfList("listBoxFamilies").Select Act_FieldName
set s = SwfWindow("R2D2 - Result Reconciliation").SwfWindow("Report editor").SwfList("listBoxFamilies").Object.GetItemRectangle
iX= cint(s.x)
iY= cint(s.y)SwfWindow("R2D2 - Result Reconciliation").SwfWindow("Report editor").SwfList("listBoxFamilies").Drag iX,iY
SwfWindow("R2D2 - Result Reconciliation").SwfWindow("Report editor").SwfListView("SelectiorFamilies").Drop 0,0
Thanks for provided information. I try to reproduce your issue using QTP 11.0, TestAdvantage 11.2 and our sample "WinListView DragDrop CS" (from our sample browser) with assemblies build for CLR 4.0., but I was not able to reproduce your issue. At my test machine everything works properly. Let me know if you have any questions.
Regards