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
Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)
I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object
What are the different types of checkpoints?
how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up
How you can make an action as re-usable action?
What is accessibility check point?
What are the various types of Actions in UFT?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
Can we use index on view?
How is test case write?
What is the difference between a Function and Action in QTP?
What is reusable action?
descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button
how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer
Can any body please tell me the steps of keyword driven framework of QTP.