Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Performing Right Click operation with QTP
#1
Solved: 10 Years, 9 Months, 1 Week 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: 123)
Reply
#2
Solved: 10 Years, 9 Months, 1 Week 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: 10 Years, 9 Months, 1 Week 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,682 08-07-2013, 12:34 PM
Last Post: anil2u
  How to perfom double click Operation in Firefox using QTP yarley 8 12,574 06-24-2011, 05:13 PM
Last Post: souvikghosh_diatm
  database operation priya999 3 3,458 03-04-2011, 08:29 PM
Last Post: Ankur
  How to perfrom a same operation on diff. page. ? njnirmal 5 4,239 08-17-2009, 12:25 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)