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

Why a framework is needed?? Plaese post your answers ASAP

3 Answers   ACC, FD, Mphasis,


How to use transactions in qtp?

0 Answers  


How will you check that your test cases covered all the requirements?

0 Answers  


how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

0 Answers  


I am using descriptive programming for my project.when QTP deosn't identity or recognize a object by record and playback method,is it possible to make QTP identify that object using descriptive programming? Note: The object doesn't have unique properties and same properties used in Record and playback are only available, no extra properties are defined.

3 Answers  






Hi all, I am using windows vista, I am in the process of learning QTP. When ever I try to work with insert mode in flight application , i am getting the error of 'Operation must use an update table query, fractional truncation(null) error. Can anyone help me regarding this?

0 Answers  


How you can replace string in qtp?

0 Answers  


why use Description programming? what is advantages and disadvantage of this methods?

2 Answers  


Is it possible to run QTP scripts created in IE 6.0 in IE 7.0?

4 Answers   TCS,


what is the Exact Meaning of Environment Variables?

2 Answers   Semantic Space,


Your roles and responsibilities and daily tasks? (As automation tester)

0 Answers   Oracle,


Dis advantages of XML checkpoint ?

0 Answers   Sapient,


Categories