Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
right click event in qtp
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
can somebody help in scripting right click of an object in qtp.Itried the below both.but they are nt working.


Code:
Browser("Arbitron Cross-Platform").Page("Arbitron Cross-Platform").WebTable("test_script").click, micRightBtn


Browser("Arbitron Cross-Platform").Page("Arbitron Cross-Platform").WebTable("test_script").Fireevent, click,micRightBtn
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Please try the below code
Code:
Setting.WebPackage("ReplayType") = 2 ' This lines changes the run mode as Analog
Browser("Arbitron Cross-Platform").Page("Arbitron Cross-Platform").WebTable("test_script").FireEvent "onclick",6,126,micRightBtn


(6,126) ---coordinates where right click has to happen.
Please change according to your need.

Regards,
Ravi
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Thanks Ravi.this works for me
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi ravi,

Can you please let me know how to get the x,y coordinates for firevent method.

is it related to abs-x,abs-y property of the require attributes?
Reply
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
yeah thats correct
Code:
x=object.getRoProperty("abs_x")
y=object.getRoProperty("abs_y")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Windows Application Custom Combo box selection change event not firing in uft RamUFT 0 964 02-06-2020, 08:10 AM
Last Post: RamUFT
  How to handle KeyUp Event used in my App Hpqtp 3 3,994 07-03-2014, 05:25 AM
Last Post: supputuri
  QTP Event Driven approach bostonma 0 3,167 12-13-2010, 10:32 PM
Last Post: bostonma
  Verifying if "onmouseover" - event has been activated QADBA 2 2,374 07-31-2008, 07:57 PM
Last Post: kishoreinchennai
Question Select Event is not working properly MMK 1 2,714 04-06-2008, 12:58 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)