I need your help in the below topic using QTP Automation
tool.



How to automate the right click of mouse on a context menu?



1)Tried low level recording which is working fine but
making use of co-ordinates.



2) Also tried changing the mouse settings and properties
using

Tools ->WebEvent RecordingConfiguration and created a
configuration file

with required mouse click events and used which did
not work.



I need your help in the below topic using QTP Automation tool. How to automate the right c..

Answer / tvsramakrishnachowdary

Hello friend mouse rtclick operations can be solved by the
following code
------------------------------------------------------------

suppose notepad ur having in that some text ur having u
want to select all the text by using mouse rtclick-
>selectall->again mouse rtclick->again select delete...ok...

set wsh=createobject(wscript.shell)
window(notepad).wineditor(edit).click 0,1,micRightbtn
for i=1 to 6
wsh.sendkeys{DOWN}
wait(1)
Next
wsh.sendkeys{ENTER}->this stmt for slecting "select all"
for i=1 to 5
wsh.sendkeys{DOWN}
wait(1)
Next
wsh.sendkeys{ENTER}->this stmt for selecting "delete"
set wsh=nothing

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

0 Answers   IBM,


any challange that faced in your project? (please give me some examples in your project?

1 Answers  


plz anybody tell me how to explain the architecture of one particular project.plz give me answer for this.....RAJESH

7 Answers   TCS, Wipro,


hi what is the use of "dim" in automation objective model or any where what is the use of "dim" plz tell me

3 Answers  


your coming from electrical backgroung..but y ur coming to software side?

0 Answers   Accenture,






How to pass parameters to Actions Pls anybody can give the answer.. Thanks in advance...

2 Answers   Navis,


how can i parameterize a login page by using database parameterization i fetch the username and password from database and put this on login page and click on ok button. so how can we write script for that code please let me know asap thanks

4 Answers   iCreate,


can any one tell me How exactly data drivent testing is done in.explain with any example and the exact steps to fallow?

2 Answers  


How will internal and external links be validated and updated? how often?

0 Answers  


I have 3 add buttons of same properties in my page but i want trigger one of them i required in my recovery scnario manager is qtp recognizes it to recovre d scnario if so how qtp recognizes it

3 Answers  


I installed QTP 9.5 on vista. Can someone please provide me the license key of the same. Thanks, Avi

2 Answers   Xavient,


Hi all, can anyone tell me the challenges u faced while using qtp?

2 Answers  


Categories