What is the use of sendkeys.In which cases we Use this
sendkey.Pls explain with example.
Answers were Sorted based on User's Feedback
Answer / pranitha
Sends one or more keystrokes to the active window (as if
typed on the keyboard).
syntax:object.SendKeys(string)
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / jayesh
Basicaly it is used to send the direct keyboard input to
forms windows, generally Enter Esc keys can also count
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / kishan
eg:
Browser().Page().webEdit("uname").set "kishan"
'to focus on a specific object use "Click" method
Browser().page().webedit("uname").click
'create ref to wscript.shell object
set wsh=createObject("Wscript.shell")
'to go the next field using TAB
wsh.sendkeys("{TAB}")
'to send the text "mypwd" in the next field
wsh.sendkeys("mypwd")
Is This Answer Correct ? | 0 Yes | 0 No |
What is Modular framework and Keyword drive framework? Explain
I have multiple radio buttons i need to select a radio buton and i dont want to hard code i have a generic function for it there i have used select#0 so it selects first radio button but for other script i want to select the 4th radio button how i can make it still more generic
4 Answers Accenture, Acentia, LM,
I want to clear the webedit field without using set"" in qtp script
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?
How many types of parameters are available in quicktest professional (qtp)?
What will be the output of the statements below? On error Resume Next Sum 100/0 if Sum= 0 Then msgbox "Pass" else msgbox "Fail" End If
what type of test cases tou will automate?
what is the use of Browser.sync()
How can i count the list box elements in QTP ?using script plz explain me (Chandana)
How to get the particular property value?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
i have an array CAPGEMINI .....Here i need to check whether G is there or not ..how to do that and friends i have one big doubt that is whether it is array or string ,how we come to know that and where we consider that it's array ,where we consider that it's an string because when i want to find the length i have big doubt whether we need to use len function or ubound ... ans me for this TWO Questions any one please