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
what is supply chain management?
What is Associate Repository in QTP 9.2 ?
how to test Web application using QTP software
How many types of recording modes in the qtp?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
if mandatory and Assitive propertys are shows same how will u write skript in QTP window
How to record a qtp script ?
I have some real time based question.. 1.what are the challenges you have faced in your current project. 2.what are the bugs you found in your current project. 3.what are the strategies you follow to convert manual test cases into automation test cases. 4.how QTP identify two different browsers. 5. When you create a function library and share object repository what are the problems you have faced 6. How to solve the tool tip problem 7.what are the interesting bug you have found in your current project. 8.what is your daily work as a automation test engg. 9. how to create a weekly status report. 10. how many test cases you write,review and execute per day. 11.what are the uses of SQL in automation. 12.How to retrieve the data in html through vb script. 13.If application is very slow how to test the application in qtp.
There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?
When to use shared and local object repository?
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
What is the descriptive programming?
How many types of parameters are there?
what is ODC and GDC?
What is the significance of “action 0” in qtp?