Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to implement Mouse Right button
#2
Solved: 10 Years, 10 Months ago
Hi Ravi,

You have mentioned that you have to right click on a record. What exactly a record is here? I mean is it a link or table content or what?

I presume that it is a link and let say it has a name "Record1". After clicking the right mouse button, let say the menu comes is a WebElement. Below code may solve your purpose,

Code:
Set dReplayObj = CreateObject("Mercury.DeviceReplay")// Create an object of DeviceReplay

get_X = Browser("").Page("").Link("Record1").GetROProperty("abs_x")// Get X axis value of Record1

get_Y = Browser("").Page("").Link("Record1").GetROProperty("abs_y")// Get Y axis value of Record1

dReplayObj.MouseClick get_X,get_Y,RIGHT_MOUSE_BUTTON// Right click on the Record1

Browser("").Page("").WebElement("Menu").Click// Chose any option

You can spy on the objects, know the class types and then customize the above code accordingly.

Let me know for further clarification.
Reply


Messages In This Thread
RE: How to implement Mouse Right button - by PrabhatN - 01-18-2011, 06:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting background color of an object on mouse over Surya 2 3,737 06-27-2018, 08:51 PM
Last Post: vensas3181
  How to get the links which appears on mouse hover of parent link rajendra649 9 34,905 03-10-2017, 06:35 PM
Last Post: satish00k
  How to capture operation such as hovering a mouse nikhilcogni 5 4,625 03-23-2013, 11:17 AM
Last Post: sams001
  [QTP]Keyboard control + mouse click lucieclaire 2 22,489 12-18-2012, 03:11 PM
Last Post: lucieclaire
  How to implement mousemove method silpavinod 0 3,596 10-10-2012, 12:19 PM
Last Post: silpavinod

Forum Jump:


Users browsing this thread: 1 Guest(s)