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
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
What is TOM in QTP?
How to change the priorities of the recovery scenario properties?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
In qtp, how you can use xpath to identify objects?
What are the ways you can synchronize?
What are the factors on which script execution time is dependent?
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?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
can test automation improve test effectiveness?
What is the parameterization? Give one example?
How to create Reusable and Multiple Actions?
How will you report the bug and explain the defect tracking sheet you handled?
What is ObjectParamater?
How do you convert manual test cases to automated test cases?