Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Performing Right Click operation with QTP
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,

Can anyone help me how to perform right click operation using QTP.
There is a webelement on a web page. If we right click on that particular WebElement then I get a small window based on which I can select from the available options. But I am not able to perform the right click operation on that webelement. I have tried using the following code.
br().page().webelement().FireEvent "onclick", 1
But this piece of code is not working always.
Can anyone help me on this. I am attaching a screenshot for reference.

Thanks,
Nishikanth Reddy


Attached Files
.doc   Right click.doc (Size: 162 KB / Downloads: 135)
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Hello Nishikanth,

Can you please send here the html source of the relevant page?

Maybe after that i can tell something.

ssping
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi

Below one is another method to perform Right Click on an Object

Code:
br().page().webelement().Click micRightBtn

If doesn't work,pls try with x,y co-ordinates

Code:
br().page().webelement().Click 10,10,micRightBtn
Hope this is useful for you


-VENKATA REDDY
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  The operation failed. An object could not be found. kotaramamohana 1 3,811 08-07-2013, 12:34 PM
Last Post: anil2u
  How to perfom double click Operation in Firefox using QTP yarley 8 12,951 06-24-2011, 05:13 PM
Last Post: souvikghosh_diatm
  database operation priya999 3 3,680 03-04-2011, 08:29 PM
Last Post: Ankur
  How to perfrom a same operation on diff. page. ? njnirmal 5 4,535 08-17-2009, 12:25 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)