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 add a runtime parameter to a datasheet?

1 Answers   Crea,


How qtp identifies objects?

0 Answers  


what is syncurnisation point? what is the use of this in real time environment? plz explain?

6 Answers   AppLabs,


what is the Debug view?

1 Answers  


what is the difference between link and hyperlink?

10 Answers   Infosys,


suppose i give valid user id and password to open an web base application on qtp.how qtp will know itis a valid user id and password

3 Answers  


how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!

0 Answers   TCS,


HI! I have completed my testing course in 2008. but now am working in banking sector as a data analyst and i want to move to an IT based company but am unable to understand whether i have to complete the testing course again and try for a job .

1 Answers  


we have 10 more actions in our test and we are using exit action command to come out from the action if any error s occured.In action 1 if any error occurs control is moving to second action but if we get error in second action exitaction is throwing general run error. Please give a idea to overcome .

1 Answers   TCS,


WE ARE PLANING TO DESIGN AUTOMATION FRAME WORK. HOW TO CALL CONFIGURATION SCRIPT FILE(.VBS) FROM DRIVE SCRIPT FILE(.VBS)

1 Answers  


What is the extension of the qtp local repository?

0 Answers  


Give me an example where you have used a COM interface in your QTP project?

1 Answers  


Categories