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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

599


What is TOM in QTP?

1799


How to change the priorities of the recovery scenario properties?

587


Suggest and Define a solution for an application whose objects are not recognized by UFT?

660


In qtp, how you can use xpath to identify objects?

605






What are the ways you can synchronize?

577


What are the factors on which script execution time is dependent?

602


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

3562


What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

1713


can test automation improve test effectiveness?

1480


What is the parameterization? Give one example?

587


How to create Reusable and Multiple Actions?

1702


How will you report the bug and explain the defect tracking sheet you handled?

2540


What is ObjectParamater?

1568


How do you convert manual test cases to automated test cases?

571