hi i have one issue while automating the script using QTP i
want scrool down .i cannot do even using scrool down
methqad is not working .the object will take WebElement plz
is there any code help me
Answer Posted / rico
I think this can be done by creating the shell object and
then using the sendkeys option(i'm just guessing)...maybe
the code goes like this
Set myshell = CreateObject("Wscript.Shell")
myshell.sendkeys "down" ' take the cursor down
(WshShell.SendKeys("+{F10}")'simulate a mouse right-click
by sending a shift F10)
Other way of doing this would be " analog recording" where
is caputre the mouse movements(like scroll, click, etc)
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
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
In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?
Why to use descriptive programming?
What is smart identification in QTP?
Can you brief the hurdles you faced during Automation testing?
What are the five challenges you faced in QTP?
What is the Difference between test object and run time object?
Can any body please tell me the steps of keyword driven framework of QTP.
Shall we add Local Repository to shared object repository,if yes,how we add
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
How will you check that your test cases covered all the requirements?
in a web page How to check and display a particular word from a paragraph?
Diff b/w Health care domain and Banking Domain?