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



What is the use of sendkeys.In which cases we Use this sendkey.Pls explain with example...

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

What is the use of sendkeys.In which cases we Use this sendkey.Pls explain with example...

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

What is the use of sendkeys.In which cases we Use this sendkey.Pls explain with example...

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

Post New Answer

More QTP Interview Questions

What is Modular framework and Keyword drive framework? Explain

4 Answers  


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

1 Answers  


WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?

9 Answers   CTS,


How many types of parameters are available in quicktest professional (qtp)?

0 Answers  






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

3 Answers   IIT,


what type of test cases tou will automate?

4 Answers   Google,


what is the use of Browser.sync()

2 Answers   NIIT,


How can i count the list box elements in QTP ?using script plz explain me (Chandana)

6 Answers   Wipro,


How to get the particular property value?

0 Answers  


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?

0 Answers  


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

7 Answers   Cap Gemini,


Categories