I used Child objects to get the count of the no of weblist
present in the page.now i need to select the item in the
weblist..Please send me full code
Answer / udham singh
set c = description.create
c(micclass).value = "Weblist"
set d = browser().page().childobjects(c)
msgbox d.count 'will give the number of lists on the page
for i = 0 to d.count - 1
d(i).select "1" 'u can give any value in double quotes
next
Note : this code will work on all the liste present on the
webpage.
Also if u want to perform select operation only on selected
weblists thats also possible
| Is This Answer Correct ? | 2 Yes | 0 No |
How we can we create a Text checkpoint in QTP 9.1,Actually what i did is first i put in recording mode and gofor Inser menu>Checkpoint>Textcheckpoint>click,Now an hand symbol came and i showed it to some textbox and cliked but the QTP9.1 is giving an error message like "The Obkect you are selecting doesn't support this operation" If i go for Help of QTP 9.1 information I didn't get any solution,pls help me in this issue.
Explain me in deatail about DATADRIVEN framework including scripts ?(realtimes plz)(Chandana)
Why is Client side image is preferred over server side image?
Can you tell me the differences between writing the VB script manually for a application and recording the same application in QTP , with a example?
How to write test cases for web applications using QTP.plz write a sample test case to show how to write.urgently needed.thanks in advance..
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
Differentiate the two Object Repository Types of QTP.
I am using DataTable.ImportSheet method to import the data from an excel sheet to the Runtime DataTable of QTP. here is my piece of code DataTable.import("c:\DataSheet.xls","Members","Members") The first row headings of Members sheet of DataSheet.xls and Members sheet of QTp are matched. but the QTP is taking very long time(approximately half an hour) to import the data into runtime datatable even though the DataSheet.xls has one or two rows in it. Please let me know why this is happening and is there any alternative for impoting the data into runtime datatable of qtp ?
tell me abt a time when u had to go above &beyind the call of duty to get the job done
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
Explain the views in the QTP GUI?
How to connect the remote desktop using QTP 9.2 explain the method or procedure?
0 Answers Magna Infotech, Oracle,