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

How To write script in QTP For Field Validation Example: password Field is accepting A range 8-20 characters only.How to write script?

3 Answers  


i want to learn testing tools what i have to know before.iam fresher i dnt know any this..which langagues i have to before testing.

2 Answers   Wipro,


Can the mode of object repository be change during run time? Eg. if the mode is per-action during design time can i change it to shared and vice-versa? Any scripting possible?

2 Answers  


How we can call the scripit from another scripit in QTP?,Not a call Action

12 Answers  


How to Import data from a ".xls" file to Data table during Runtime.

10 Answers   BirlaSoft,


write vbscript on veb applications in qtp with exapmles?

1 Answers  


Create an Excel file and pass the values from Flat File? (for ex:data1.txt,data2.txt )

2 Answers   FIS,


if there is two login button in your page, how you know that this login button is correct for login .

2 Answers  


What is time parameter?

1 Answers  


I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?

0 Answers  


How to Test Dynamic links ?

4 Answers   Wipro,


how to write xml output check point bu useing descriptive programing .means without useing output check point

0 Answers  


Categories