Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to perform the "Double click" event on Java Addins i.e Java button
#1
Not Solved
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
Reply
#2
Not Solved
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.
Reply
#3
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to record JAVA Swing application with JAVA add-in Mrudula Chinchanikar 0 798 11-24-2021, 07:18 PM
Last Post: Mrudula Chinchanikar
  UFT not recognizing Java Objects/ Elements YogeshCallappa 0 3,133 11-08-2016, 02:44 PM
Last Post: YogeshCallappa
  Unable to perform operations on objects under WinObject in .net app ramakant 0 1,809 11-10-2015, 07:56 PM
Last Post: ramakant
  UFT 12 not recognizing Java Swing objects uftuser18 0 3,155 07-22-2015, 01:58 AM
Last Post: uftuser18
  Unable to perform click operation on MDI menu/sub menu (Infragistics) with UFT 12 Mahen1108 0 3,303 06-17-2015, 05:29 PM
Last Post: Mahen1108

Forum Jump:


Users browsing this thread: 1 Guest(s)