Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.



I need your help in the below topic using QTP Automation tool. How to automate the right c..

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

Post New Answer

More QTP Interview Questions

can u write one user defined function for webedit class.

6 Answers   Cap Gemini,


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

0 Answers  


User defined function in QTP

2 Answers   Lehman Brothers,


How to release all resources file from the QTP?

0 Answers   Tech Mahindra,


Can we check environment variable value without existing of environment variable

2 Answers   NIIT,


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?

4 Answers   Livetek,


what is supply chain management?

0 Answers   ITC Infotech,


How to get data from excel sheet to the script? write the script.

6 Answers   Ever, Liquid Hub,


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

2 Answers  


What are the challenges do we face while testing webbased applcations using the automation tool QTP or any?

1 Answers  


setroproperty and getroproperty difference

5 Answers   Ordain Solutions,


What are private functions in QTP? How they can be called from the function library?

0 Answers   HCL,


Categories