How do I left click on the Right click menu? - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: How do I left click on the Right click menu? (/Thread-How-do-I-left-click-on-the-Right-click-menu) |
How do I left click on the Right click menu? - RandomGrin - 12-18-2012 Hey all, Google is depressing me again....apparently I am the only person in the universe NOT testing a web-app. Also, there is tons of help on how to do a Rclick (on a web app of course) but nothing on how to do a left click on the menu that you get after doing a rclick. When I record my app, it records code for my Rclick on the menu item. Great. Then I left click on the resulting menu......and QTP ignores me like nothing happened. Sure enough, when I play it back, there is my rclick menu hanging out there, but nothing ever gets selected..... the left click doesn't happen. So....How do I select (left click) on a menu choice that only appears after I have Right clicked on a tree item? In a standalone app, NOT a web app! Thanks for any help....Google isn't doing it for me! Randomgrin RE: How do I left click on the Right click menu? - udayanem - 12-18-2012 Left is nothing but clicking on Enter button. First navigate to the Menu option you want like {DOWN}/{UP} etc, then once you reach the menu option click {ENTER}. RE: How do I left click on the Right click menu? - RandomGrin - 12-18-2012 Hey, Thanks for the idea, but I'm still not getting it. When I try to record using Enter to select the menu item, it ignores it just like it ignores a left-click. I think I found your link even though the genius forum-robot assumed it must be spam and changed the URL. (It was supposed to be hpsqtp.blogspot, right?) That article again assumes I am using links on webpages so I am not sure it will work. Also, it wants to use absolute x,y coordinates, and my x,y will be different every time I run the program. There will always be a different number of objects in the tree...so I want to select by object name, not by visual position. So is there no way to do what I can do manually? I really cant either rclick on a sub-menu, or hit Enter on it? If you must use absolute x,y then I am starting to think QTP is going to be useless for me. Anyone got ideas? Help! |