Micro Focus QTP (UFT) Forums
How to perform the "Double click" event on Java Addins i.e Java button - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: How to perform the "Double click" event on Java Addins i.e Java button (/Thread-How-to-perform-the-Double-click-event-on-Java-Addins-i-e-Java-button)



How to perform the "Double click" event on Java Addins i.e Java button - venkatbatchu - 01-19-2010

Hi,
I have a scenario like,
Need to perform double click on a button which is "Java Button"

Version: QTP 10
Please refresh me with the above scenario

I have tried with some of the options like
One:
Code:
JavaWindow("xxxxxx").JavaButton("xxxxxx").FireEvent("ondblclick")
(FireEvent("ondblclick"),
this is wotking with Web objects)

which is displaying the error message as "un recoverable error"

Second:
Code:
JavaWindow("xxxxxx").JavaButton("xxxxxx").Getroproperty("abs_x")
JavaWindow("xxxxxx").JavaButton("xxxxxx").Getroproperty("abs_y")
JavaWindow("xxxxxx").JavaButton("xxxxxx").Doubleclick(&x,&y)

Which is also displaying the error message as "un recoverable error"

please refresh me with the above scenario


Thanks in advance
Venkat.Batchu


RE: How to perform the "Double click" event on Java Addins i.e Java button - sreekanth chilam - 01-20-2010

Hi,

Refer the below example & try to implement acordingly.
Code:
JavaWindow("xxxxxx").JavaButton("XXXX").DblClick 5, 5, "LEFT"
Where 5,5 --> valid x- and y-coordinates of the location on the applet to be clicked
"LEFT" --> Indicates the double-click should be performed with the 'left' mouse button.


RE: How to perform the "Double click" event on Java Addins i.e Java button - venkatbatchu - 01-24-2010

Hi Srikanth,

Thank for ur prompt response,
I have tried with suggestion but which is not performing double click, could you please suggest me another alternative for this?

Thanks for suggesting,


Venkat.Batchu