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 are the types of object repository in qtp?

0 Answers  


I have written some script in QTP and i added those objects in Object Repository. All written script has been executed successfully. After few days when i tried to execute the same script i got error message "objects not found in Object Repositiry". How can we solve this issue?

3 Answers  


How many types of recording modes in qtp? Describe each type with an example where we use them?

0 Answers  


What contains Data Driven Framework document in qtp?

0 Answers  


How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..

0 Answers  






How many actions we can write in a test?

7 Answers   TCS,


There is one parent browser and 'n' number of child browsers on desktop. Write a code to close all the child browsers but parent browser should not be closed.

1 Answers  


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  


hi, FOR 3+ QTP INTERVIEW, FOR EXAMPLE WE PUT ONLINE BANKING SYSTEM PROJECT IN OUR RESUME, IN PROJECT MANAGER ROUND...WHAT R THE MAJOR QUESTIONS ARE ASKED IN P.M? PLS TELL ME ATLEAST 10 QUESTIONS?.....AND IF POSSIBLE POST ANSWERS ALSO....

0 Answers  


What is the architecture of framework

0 Answers  


What is dictionary object? what is the use of it? How you will display all the items in the dictionary object?

1 Answers   Bank Of America,


Hi, Can anyone write the following qtp script...please its urgent ·Navigate to Google in a new IE instance ·Search for the following word "Gap, Inc." ·Iterate thought the first 10 pages of google ·On each page collect the following ·The "blue" page title ·The "green" url ·Output all the data into a file named "test_output.txt" ·Format "Title – URL"

1 Answers  


Categories