How to record right click of a context menu . and click on the selsection

Showing Answers 1 - 1 of 1 Answers

First of all, i am not clear which Context menu you are talking about, whethere is it Desktop Context menu or menu for those object those are running on System tray as notification Area.
BTW, 1)
If you record right click on Context menu for Deskop it will generate script as below:
Window("Program Manager").WinListView("SysListView32").Click 1199, 286, micRightBtn
Window("Program Manager").WinObject("SHELLDLL_DefView").WinMenu("ContextMenu").Select "Refresh;"

While you are running this Scirpt only one Run Error you may be getting that is "Object is not visible" which is due to your QTP Screen may be overlaaping of your perform action. So please make sure while running these kind of test, QTP should not be overlapping.

Else your test will be running fine and will show up you result as per your action.
2) The 2nd thing is the right clik on the object over Notification area, So i would recommed you to first hide all those object by system property and record only object that click you want to record, becuase those are dynamic objects and therir postion might be change while running the test.

Hope this will help you to get problem out

Thank you very much!

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions