Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Using Soft Keys in QTP within the QTP forums, part of the Software Testing category; How to use Soft Keys in QTP (Pls provide a code with example)I want to use soft keys like (Ctrl+F7),(Ctrl+F8) etc. in my script. Thanks, Vijay9421834186 NOTE : [This question ...
|
|||||||
|
|||
|
Using Soft Keys in QTP
How to use Soft Keys in QTP (Pls provide a code with example)I want to use soft keys like (Ctrl+F7),(Ctrl+F8) etc. in my script.
Thanks, Vijay9421834186 NOTE : [This question was asked by vijay sawale] |
| Sponsored Links |
|
|||
|
Re: Using Soft Keys in QTP
Window("Microsoft Internet Explorer").WinObject("Internet Explorer_Server").Type micCtrlDwn+micF7+micCtrlUp
etc... the syntax is: object.Type keyboardInput |
|
|||
|
Re: Using Soft Keys in QTP
it is not advisable to use the soft keys in scripting.
If it is necessary the best way is to start record and use the soft keys then it will generate the code and you can use that for later use also. Dont try to remember those statements to use them while you are enhancing the script. here is the example Window("Flight Reservation").ActiveX("MaskEdBox").Type micAltDwn + "f" + micAltUp Window("Flight Reservation").ActiveX("MaskEdBox").Type micAltDwn + "o" + micAltUp |
|
|||
|
For pressing tab button on keyboard you can give....
Dim WshShell set WshShell = CreateObject("WScript.Shell") WshShell.SendKeys "{TAB}" set WshShell=nothing Similarly for other keys just type in the parameter.....within "{}" Eg - "{DOWN}" Eg- "^"+"{F11}" Last edited by jainbrijesh; 07-06-2007 at 05:36 AM. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to importforiegn keys .......... | yagnkan | Testing Issues | 0 | 10-29-2006 03:35 PM |