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 / 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 |
what is the difference between built-i function and In-built function?
Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project
How to enter table check points?
Does the Existing reusable action can be modified at the time of calling the action?? Please help me..
Explain how you can replace string in qtp?
if devloper change only button names in present build then script will execute or not , why? Only gui changed.......
What is synchronization point in QTP?
What is the difference between action & script?
what is the syntax or command in vbscript to display user message example i want to display "welcome to QTP".
key word driven frame work is like a folder structure Question is that where is the folder like funtion library folder,object repository,data base,application scenerio folder etc are store whether in a remote machine where we have to access or in our machine (it just like VSS)
what is the difference between wait and wait function
How to use regular expression in descriptive programming?