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 |
can u write one user defined function for webedit class.
Can any body help me to write descriptive program to find a cell value (say 2 row, 3rd column) in a datatable which is creating dynamically and statically
User defined function in QTP
How to release all resources file from the QTP?
Can we check environment variable value without existing of environment variable
Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in the below string "john" could any one explain me? Is there any function for that?
what is supply chain management?
How to get data from excel sheet to the script? write the script.
How to test a web application using QTP?there is no any .exe file in web app,then how we can take the application for testing
What are the challenges do we face while testing webbased applcations using the automation tool QTP or any?
setroproperty and getroproperty difference
What are private functions in QTP? How they can be called from the function library?