rohanmehta123New Contributor12 years agoDrag and DropHi All, I am using TestComplete 9.30 with JScript. I want to drag a file (present at D:\\ drive) to a screen of application under test... Can you please help?
lnd_amaralContributor11 years ago function getXPosition(object){ return object.WindowToScreen(10, 10).X; } function getYPosition(object){ return object.WindowToScreen(10, 10).Y; } function dragFromTo(fromObject, toObject){ var fromX = getXPosition(fromObject); var fromY = getYPosition(fromObject); var toX = getXPosition(toObject); var toY = getYPosition(toObject); fromObject.Drag(10,10, toX-fromX, toY-fromY); }
Recent DiscussionsAvalonia - XPF desktop app automationTestComplete 15.80: Mobile Recording on real Samsung device does not capture actionsCannot select certain web elements anymore
Related ContentDrag-and-drop object to another objectCrossBrowserTesting - Record and Replay for Drag and Drop testsDrag and Drop without using cordinate system