QTP Drag and Drop in Java - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: QTP Drag and Drop in Java (/Thread-QTP-Drag-and-Drop-in-Java) |
QTP Drag and Drop in Java - EclipseDev - 07-02-2008 Version: QTP 9.5 + java add-in Application tested: Eclipse RCP app Hi, I am evaluating QTP for our UI automated testing needs and I am blocked on the following scenario: I am trying to drag and drop an element from a tree into an editor pane, which is a typical gesture in a graphical editor. There are several problems: - The recording doesn't record the drag and drop, but merely a click on the destination pane - I can't access the selected object in the tree programmatically in order to drag it. Absolute coordinates are not an option, since the tree contents may vary, and I need to identify the item by name. I can select the node through the JavaTree("Tree").Select, but it doesn't give me any coordinates or handle that I could drag. Is this feature supported? How to do it? I have skimmed the documentation and forums without finding any example or answer. Thanks! |