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

how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief

1536


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

580


How to use descriptive programming?

603


How you are developing the script? Using record and play back or manual?

629


How did you resolve conflicts present in Object Repository?

1611






What is test object model in quicktest professional?

619


What is quicktest professional window?

554


What is quick test pro? What is a quick test professional?

547


What is the differences between image check point and bit map check point?

579


In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?

1488


I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?

1370


How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?

623


how to explain a claims and insurance project?

1746


hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company

1422


How you can delete excel file in qtp?

591