Hi Johnson, Million thanks to you.
The below code you have given is working fine and I could automate the scenario in my Application without any issues. Just I want to know more about the operations you used in the script. As I am new to QTP, I don't have any idea about this type of scripting. I request you please direct me where I can get more information on this type of scripting. Thank you very much for your help and Wish you a very happy new year in advance. Regards, Srinivas. On Fri, Dec 30, 2011 at 3:47 PM, Johnson Solomon <[email protected]>wrote: > Hi Srinivas, > > Try the below code: > > RightClick > Browser("name:=Google").Page("title:=Google").Link("name:=iGoogle") > Window("hwnd:="&Browser("name:=Google").GetROProperty("hwnd")).Type micDwn > + "A" + micReturn > > Function RightClick(Obj) > X = Obj.GetROProperty("abs_x") + Obj.GetROProperty("width")/2 > Y = Obj.GetROProperty("abs_y") + Obj.GetROProperty("height")/2 > Set deviceReplay = CreateObject( "Mercury.DeviceReplay" ) > deviceReplay.MouseClick X,Y,"2" > Set deviceReplay = nothing > End Function > > With Regards, > Johnson > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
