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
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 |
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 |
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 |
What are the types of object repository in qtp?
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?
How many types of recording modes in qtp? Describe each type with an example where we use them?
What contains Data Driven Framework document in qtp?
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..
How many actions we can write in a test?
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.
How To write script in QTP For Field Validation Example: password Field is accepting A range 8-20 characters only.How to write script?
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....
What is the architecture of framework
What is dictionary object? what is the use of it? How you will display all the items in the dictionary object?
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"