Performing Right Click operation with QTP - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Performing Right Click operation with QTP (/Thread-Performing-Right-Click-operation-with-QTP) |
Performing Right Click operation with QTP - Nishikanth - 09-26-2008 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 RE: Performing Right Click operation with QTP - ssping - 10-06-2008 Hello Nishikanth, Can you please send here the html source of the relevant page? Maybe after that i can tell something. ssping RE: Performing Right Click operation with QTP - VENKATAREDDY_M - 10-06-2008 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 -VENKATA REDDY |