How to record right click of a context menu and click on the
selection ?

Answer Posted / pramod k sirotia

Very Wrong Amarendra Kothuru
why r u taking such Complicated way.

Well 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!

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...

1723


Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?

624


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

1845


how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!

1740


Which environments does qtp support?

681






What are the types of properties that quick test learns while recording?

540


Do you know how to connect database? Can you tell me the procedures?

555


Explain the concept of how quicktest professional identifies object?

540


When you open QTP, how many sheets you can see?

664


What is an optional step in qtp ?

639


what is the difference btn risks & Therads in the Test plan documentation?

1592


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2070


How to create Reusable and Multiple Actions?

1714


How the smart identification is used in real time?Please explain with an example

1551


how can we do the frame work in qtp

1608