Micro Focus QTP (UFT) Forums
MouseDrag on Java Panel - 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: MouseDrag on Java Panel (/Thread-MouseDrag-on-Java-Panel)



MouseDrag on Java Panel - cowboy49 - 08-22-2012

Hello, I am using object.MouseDrag and object.mouseclick to click/select on lines within a java panel. Once selected these lines will change colors to indicate they are selected. However, using QTP with mouseclick or mousedrag selects line but lines do not update(color change) to indicate selection. Should I update mouse listeners here? Any ideas will be appreciated. Thanks

Panel.Click 232,32,"LEFT"
Panel.MouseDrag 232,32,288,57,"LEFT"


RE: MouseDrag on Java Panel - supputuri - 08-23-2012

Hi,

Try the below snippet and let me know your output.

Snippet:
Code:
'Set the Replay type as mouse
Setting.WebPackage("ReplayType")=2

'Perform your operations

'Resent the replay type as (Event)
Setting.WebPackage("ReplayType")=1