TO record the Right click event by QTP 9.2
Hello every one ,
Currently I am facing a problem to record the Rt. mouse click event through the QTP 9.2 on the application developed on the C# .net Platform . I have also installed the Test advantage from the infagestics to resolve the problem , but still the problem is persistant. can some one suggest me the solution for the same.
Thank You ,
Re: TO record the Right click event by QTP 9.2
You can genratre mouse right click during replay.
Here is the sample code and you need to modify for your needs.
Set obj = CreateObject ("Mercury.DeviceReplay")
absx = Browser("Google").Page("Google").WebEdit("q").GetR OProperty("abs_x")
absy = Browser("Google").Page("Google").WebEdit("q").GetR OProperty("abs_y")
obj.MouseMove absx, absy
obj.MouseDown absx, absy, 2 '2 is for the Right Click and 0 for the Left click
obj.MouseUp absx, absy, 2
Set obj = Nothing