iamraj09
11 years agoContributor
Drag and drop wont work as per the requirement
Hello everyone,
Currently I am working on Test Complete to test the performance of the software called SoMachine, where I came across a situation where I need to drag and drop an Object from one window to another and measure the time. I tried to do it by recording the script, but it is of no use.
Is there any other work around to find the Coordinates of the required elements and do it programatically..??
Or is there any other way to work on this issue. I have attached the screen shot of my requirement.
From Window:
var InternalListView=Sys.Process("Central").WinFormsObject("MainForm").WinFormsObject("DockContainer", "", 1).WinFormsObject("Devices & Modules").WinFormsObject("FieldDevicesCatalogView").WinFormsObject("panel1").WinFormsObject("NavigationPane").WinFormsObject("SplitContainerExtended", "").WinFormsObject("SplitterPanel", "", 2).WinFormsObject("SplitContainerExtended", "").WinFormsObject("SplitterPanel", "", 1).WinFormsObject("I/O Modules").WinFormsObject("InternalListView", "");
*Note we can access the internal Item by ClickItem method.
For example:
InternalListView.ClickItem("TM3DI16/G ", 0);
To Window:
Sys.Process("Central").WinFormsObject("MainForm").WinFormsObject("DockContainer", "", 2).WinFormsObject("Devices").WinFormsObject("Devices").WinFormsObject("_treeTableView").WinFormsObject("InternalListView", "")
Please guide me through. Thanks in advance.
Best Regards,
Guru.
