Hi All,
Please observe the attached screen shot
My scenario 1) is--> I need to record some of double click actions in my application
2) Need to perform double click on particular value, how to do this action on specific value
Please let me know if u have any solution for this
Thanks,
Venkat.Batchu
although I agree with Basanth's Sugestion - if you can post more technical details then we can defintely help you in better way.
If I have understood it correct you want to a double click operation on a particular object
I can suggest you for the second scenario
2) Need to perform double click on particular value, how to do this action on specific value
get the x, y co-ordinates of the object on which you want to perform the double click.
Create and object of Mercury.DeviceReplay
use
Code:
object.MouseDblClick( x, y, Button )
where Object is device replay object
and possible values for Button can be
LEFT_MOUSE_BUTTON = 0
MIDDLE_MOUSE_BUTTON = 1
RIGHT_MOUSE_BUTTON = 2
Saket -
DeviceReplay might not always be the best solution to perform. In a application where the co-ordinates change dynamically, you may need to perform few modifications to the axes obtained before clicking on it. Always we would first need to find the object and explore all the possibilites of a doubleclick action. If not available then we may proceed with API's or DeviceReplay or Sendkeys etc...
Just a suggestion :-)
Basanth Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
For i = 0 to rowcount - 1
cellvalues = Browser().page().frame().webtable().getcelldata(i, 1)
if Instr(Trim(Cellvalues),"Venkat") <> 0 Then
Browser().page().frame().webtable().Fireevent "ondblclick"
Next
if the above throws a error or does not work try this,
Let me know if it helps.
Please be aware that the most skeletal part of a raw code has been supplied to you. Please tweak according to your requirement and your coding standards. Logic is the only part which remains untouched.
Basanth Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.