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

What are the types of object repositories? Which one is you using?

610


What are the benefits of qtp?

545


How the exception handling can be done using quicktest professional (qtp)?

562


What is object spy in quicktest professional?

606


Have you used xml check point in your project?

544






1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?

1488


How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

1727


How will you report the bug and explain the defect tracking sheet you handled?

2533


How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..

1605


How to modify the text checkpoint?

607


What is parameter in qtp?

669


What is environment variable in qtp and why to use it?

536


What do you to script when objects are removed from application?

605


What is the syntax to call one script from another?

525


Explain in brief about the quicktest professional (qtp) automation object model?

553