what r the send key commands in QTP why they r used
Answer / pradeep.yaksiri
Sendkeys method is like boon for QTP testers, In some cases
QTP tool becomes dumb and not able to identify or record the
windows based application, In that case rather than not
doing anything we can still automate it using sendkeys
method. You can send any character to application to perform
specific action i.e If you want to close the notepad then
you can do it by sending,
1. ALT+F and
2. X.
Or
only ALT+F4
In QTP how can we perform this action? Let's take one simple
and practical example.
Following is the simple example which perform closing
notepad action using sendkeys method in qtp.
==============================
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "%f"
wait 3
WshShell.SendKeys "x"
wait 3
Set WshShell = Nothing
==============================
OR
==============================
Set WshShell = CreateObject("WScript.Shell")
wait 2
WshShell.SendKeys "%{F4}"
wait 3
Set WshShell = Nothing
==============================
Is This Answer Correct ? | 3 Yes | 0 No |
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
I m new to QTP? Is it necessary to know VB for learning QTP for Automation? Can I understand QTP excellently Without practical automation?
hi,which is the best book to refer QTP 9.2 and Faq's.
What are the common defects found in your project? (in qtp interview)
In what situations QTP will not recognize the Objects?
how can we write descriptive programming for menus when qtp is not able to identify it..and how can we write descriptive programming for partially identified and non standard objects..do i have to map the objects before writing the script
Can any one send me the QTP Basic Coding Samples?
diff between wr and qtp in detail.
In QTP I have a parameter in a datatable that is a sentence. I need to take the last word from the sentence and enter it into a field in a web application. How can I setup a parameter to enter in just a portion of the parameter (last word of the sentence) instead of the entire paramater (whole sentence).
How u prepare Test result summary in QTp?
tell me about framework types and most used framework in real time. types of output value in details. diff between wr and qtp in detail.
in qtp how i can retrive from a browser how many links are there.means total no of links used in a browser