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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to replay a script in qtp?

616


What is TOM in QTP?

1806


How you know that a test case is a regression test case

3062


What do you mean by checkpoints in qtp?

562


How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object

2529






What is method name to compare two XML files.

1539


What is expert view and keyword view?

626


What is the diff between image and bitmap check point?

598


What is the file extension of the code file in qtp?

563


Explain how you can find length of array in qtp?

601


what is command for executing files?

1517


what is the frame work in J-meter?

1604


What is checkpoints for quicktest professional?

551


What are some test assets and related extensions of qtp?

556


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1389