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 |
How can i use Ordinal identifiers and Smart identification methods suppose i want to know the index no of check box
What are the features supported by UFT?
How do we do DOM programming in QTP.Could you explain with an example. If possible please provide some material or link related to DOM Programming.
How to capture a window in qtp or how to take snapshot of any window while writing script in qtp
How to analyzing the checpoint results?
How do we analyze the checkpoint results?
can i login a page by giving username and password and click on ok button through database parameterization.and if its yes then please write the code of that
How to analyzing test results using quicktest professional (qtp)?
Explain roles and responsibilites of 2yrs Automation qtp engineer.
Explain abt the File System Object in QTP with ex
difference between multiple parameterization and data driven wizard in QTP?
What is the difference between run time object and test object in QTP?